You've already forked getidev
fix(ci): rename workflows; add golang ci lint
This commit is contained in:
52
.gitea/workflows/release.yaml
Normal file
52
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,52 @@
|
||||
name: "Release"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: [ '**' ]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: "Release application"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.3.0
|
||||
- uses: docker/setup-qemu-action@v3.6.0
|
||||
- uses: actions/setup-go@v5.5.0
|
||||
with:
|
||||
go-version: stable
|
||||
- uses: docker/login-action@v3.5.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.3.0
|
||||
with:
|
||||
version: v2.11.2 # 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/getidev:${TAG} \
|
||||
# docker://docker.io/volkerraschek/getidev:${TAG}
|
Reference in New Issue
Block a user