You've already forked helm-docker
							
							fix(ci): move workflows into .gitea directory
This commit is contained in:
		
							
								
								
									
										49
									
								
								.gitea/workflows/build.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								.gitea/workflows/build.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,49 @@
 | 
			
		||||
name: Build
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  pull_request:
 | 
			
		||||
    types:
 | 
			
		||||
    - opened
 | 
			
		||||
    - reopened
 | 
			
		||||
    - synchronize
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
    - master
 | 
			
		||||
  workflow_dispatch: {}
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build-arm64:
 | 
			
		||||
    runs-on: ubuntu-latest-arm64
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4.2.2
 | 
			
		||||
      - uses: docker/setup-qemu-action@v3.6.0
 | 
			
		||||
      - uses: docker/setup-buildx-action@v3.10.0
 | 
			
		||||
 | 
			
		||||
      - name: Build image
 | 
			
		||||
        run: |
 | 
			
		||||
          TAG=latest
 | 
			
		||||
 | 
			
		||||
          docker buildx build \
 | 
			
		||||
            --platform linux/arm64 \
 | 
			
		||||
            --file Dockerfile \
 | 
			
		||||
            --provenance false \
 | 
			
		||||
            --tag git.cryptic.systems/volker.raschek/helm:${TAG}-arm64 \
 | 
			
		||||
            .
 | 
			
		||||
 | 
			
		||||
  build-amd64:
 | 
			
		||||
    runs-on: ubuntu-latest-amd64
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4.2.2
 | 
			
		||||
      - uses: docker/setup-qemu-action@v3.6.0
 | 
			
		||||
      - uses: docker/setup-buildx-action@v3.10.0
 | 
			
		||||
 | 
			
		||||
      - name: Build image
 | 
			
		||||
        run: |
 | 
			
		||||
          TAG=latest
 | 
			
		||||
 | 
			
		||||
          docker buildx build \
 | 
			
		||||
            --platform linux/amd64 \
 | 
			
		||||
            --file Dockerfile \
 | 
			
		||||
            --provenance false \
 | 
			
		||||
            --tag git.cryptic.systems/volker.raschek/helm:${TAG}-amd64 \
 | 
			
		||||
            .
 | 
			
		||||
							
								
								
									
										22
									
								
								.gitea/workflows/markdown-linters.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.gitea/workflows/markdown-linters.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
name: 'Lint Markdown files'
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  pull_request:
 | 
			
		||||
    types:
 | 
			
		||||
    - opened
 | 
			
		||||
    - reopened
 | 
			
		||||
    - synchronize
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
    - master
 | 
			
		||||
  workflow_dispatch: {}
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  markdown-lint:
 | 
			
		||||
    runs-on:
 | 
			
		||||
    - ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4.2.2
 | 
			
		||||
    - uses: DavidAnson/markdownlint-cli2-action@v19.1.0
 | 
			
		||||
      with:
 | 
			
		||||
        globs: '**/*.md'
 | 
			
		||||
							
								
								
									
										101
									
								
								.gitea/workflows/release.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										101
									
								
								.gitea/workflows/release.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,101 @@
 | 
			
		||||
name: Release
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    tags:
 | 
			
		||||
    - "**"
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  push-arm64:
 | 
			
		||||
    runs-on: ubuntu-latest-arm64
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4.2.2
 | 
			
		||||
      - uses: docker/setup-qemu-action@v3.6.0
 | 
			
		||||
      - uses: docker/setup-buildx-action@v3.10.0
 | 
			
		||||
 | 
			
		||||
      - uses: docker/login-action@v3.4.0
 | 
			
		||||
        with:
 | 
			
		||||
          registry: git.cryptic.systems
 | 
			
		||||
          username: ${{ github.repository_owner }}
 | 
			
		||||
          password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
 | 
			
		||||
 | 
			
		||||
      - name: Build and push image
 | 
			
		||||
        run: |
 | 
			
		||||
          TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
 | 
			
		||||
 | 
			
		||||
          docker buildx build \
 | 
			
		||||
            --build-arg HELM_VERSION=${{ github.ref_name }} \
 | 
			
		||||
            --file Dockerfile \
 | 
			
		||||
            --platform linux/arm64 \
 | 
			
		||||
            --provenance false \
 | 
			
		||||
            --push \
 | 
			
		||||
            --tag git.cryptic.systems/volker.raschek/helm:${TAG}-arm64 \
 | 
			
		||||
            .
 | 
			
		||||
 | 
			
		||||
  push-amd64:
 | 
			
		||||
    runs-on: ubuntu-latest-amd64
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4.2.2
 | 
			
		||||
      - uses: docker/setup-qemu-action@v3.6.0
 | 
			
		||||
      - uses: docker/setup-buildx-action@v3.10.0
 | 
			
		||||
 | 
			
		||||
      - uses: docker/login-action@v3.4.0
 | 
			
		||||
        with:
 | 
			
		||||
          registry: git.cryptic.systems
 | 
			
		||||
          username: ${{ github.repository_owner }}
 | 
			
		||||
          password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
 | 
			
		||||
 | 
			
		||||
      - name: Build and push image
 | 
			
		||||
        run: |
 | 
			
		||||
          TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
 | 
			
		||||
 | 
			
		||||
          docker buildx build \
 | 
			
		||||
            --build-arg HELM_VERSION=${{ github.ref_name }} \
 | 
			
		||||
            --file Dockerfile \
 | 
			
		||||
            --platform linux/amd64 \
 | 
			
		||||
            --provenance false \
 | 
			
		||||
            --push \
 | 
			
		||||
            --tag git.cryptic.systems/volker.raschek/helm:${TAG}-amd64 \
 | 
			
		||||
            .
 | 
			
		||||
 | 
			
		||||
  push-manifest:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    needs:
 | 
			
		||||
    - push-arm64
 | 
			
		||||
    - push-amd64
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: docker/login-action@v3.4.0
 | 
			
		||||
        with:
 | 
			
		||||
          registry: git.cryptic.systems
 | 
			
		||||
          username: ${{ github.repository_owner }}
 | 
			
		||||
          password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
 | 
			
		||||
 | 
			
		||||
      - name: Create and push manifest
 | 
			
		||||
        run: |
 | 
			
		||||
          TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
 | 
			
		||||
 | 
			
		||||
          docker manifest create git.cryptic.systems/volker.raschek/helm:${TAG} \
 | 
			
		||||
            --amend git.cryptic.systems/volker.raschek/helm:${TAG}-amd64 \
 | 
			
		||||
            --amend git.cryptic.systems/volker.raschek/helm:${TAG}-arm64
 | 
			
		||||
 | 
			
		||||
          docker manifest push git.cryptic.systems/volker.raschek/helm:${TAG}
 | 
			
		||||
 | 
			
		||||
  sync-to-hub-docker-io:
 | 
			
		||||
    needs:
 | 
			
		||||
    - push-manifest
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Copy images to docker.io
 | 
			
		||||
      run: |
 | 
			
		||||
        TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
 | 
			
		||||
 | 
			
		||||
        apt-get update --yes
 | 
			
		||||
        apt-get install --yes skopeo
 | 
			
		||||
        skopeo copy \
 | 
			
		||||
          --all \
 | 
			
		||||
          --dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
 | 
			
		||||
          --dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
 | 
			
		||||
          --src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
 | 
			
		||||
          --src-username volker.raschek \
 | 
			
		||||
            docker://git.cryptic.systems/volker.raschek/helm:${TAG} \
 | 
			
		||||
            docker://docker.io/volkerraschek/helm:${TAG}
 | 
			
		||||
							
								
								
									
										21
									
								
								.gitea/workflows/update-docker-hub-description.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								.gitea/workflows/update-docker-hub-description.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
name: Update Docker Hub Description
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
    - master
 | 
			
		||||
    paths:
 | 
			
		||||
    - README.md
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  update-description-on-hub-docker-io:
 | 
			
		||||
    runs-on:
 | 
			
		||||
    - ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4.2.2
 | 
			
		||||
    - uses: peter-evans/dockerhub-description@v4.0.2
 | 
			
		||||
      with:
 | 
			
		||||
        username: ${{ secrets.DOCKER_IO_USERNAME }}
 | 
			
		||||
        password: ${{ secrets.DOCKER_IO_PASSWORD }}
 | 
			
		||||
        repository: volkerraschek/helm
 | 
			
		||||
        readme-filepath: README.md
 | 
			
		||||
		Reference in New Issue
	
	Block a user