You've already forked civ
							
							
		
			All checks were successful
		
		
	
	Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Successful in 12s
				
			Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 9s
				
			Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 38s
				
			Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (pull_request) Successful in 13s
				
			Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (pull_request) Successful in 9s
				
			Lint Markdown files / Run markdown linter (pull_request) Successful in 4s
				
			Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Successful in 33s
				
			Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (pull_request) Successful in 39s
				
			Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (pull_request) Successful in 35s
				
			
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: "Release"
 | |
| 
 | |
| on:
 | |
|   push:
 | |
|     tags: [ '**' ]
 | |
| 
 | |
| permissions:
 | |
|   contents: write
 | |
| 
 | |
| jobs:
 | |
|   release:
 | |
|     name: "Release application"
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|     - uses: actions/checkout@v5.0.0
 | |
|     - uses: docker/setup-qemu-action@v3.6.0
 | |
|     - uses: actions/setup-go@v6.0.0
 | |
|       with:
 | |
|         go-version: stable
 | |
|     - uses: docker/login-action@v3.6.0
 | |
|       with:
 | |
|         registry: git.cryptic.systems
 | |
|         username: ${{ github.repository_owner }}
 | |
|         password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
 | |
|     - env:
 | |
|         GITEA_TOKEN: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
 | |
|         GONOSUMDB: ${{ vars.GONOSUMDB }}
 | |
|         GOPROXY: ${{ vars.GOPROXY }}
 | |
|       uses: goreleaser/goreleaser-action@v6.4.0
 | |
|       with:
 | |
|         version: v2.12.5 # renovate: datasource=github-releases depName=goreleaser/goreleaser
 | |
|         args: release --clean
 | |
| 
 | |
|   sync-to-hub-docker-io:
 | |
|     needs:
 | |
|     - release
 | |
|     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/civ:${TAG} \
 | |
|             docker://docker.io/volkerraschek/civ:${TAG}
 |