You've already forked tarr
16e3f39ec4
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Successful in 35s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (pull_request) Successful in 36s
Lint Markdown files / Run markdown linter (pull_request) Failing after 14m20s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (pull_request) Failing after 14m25s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Failing after 14m30s
58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
name: "Release"
|
|
|
|
on:
|
|
push:
|
|
tags: [ '**' ]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
name: "Release application"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
|
|
with:
|
|
image: harbor.cryptic.systems/docker/tonistiigi/binfmt:latest
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version: stable
|
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.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@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7.2.2
|
|
with:
|
|
version: v2.16.0 # renovate: datasource=github-releases depName=goreleaser/goreleaser
|
|
args: release --clean
|
|
|
|
sync-to-hub-docker-io:
|
|
name: "Upload Images to 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/tarr:${TAG} \
|
|
docker://docker.io/volkerraschek/tarr:${TAG}
|