Compare commits

4 Commits
v1 ... main

Author SHA1 Message Date
132882de73 workflows path
Some checks failed
Golang Linting / lint (push) Failing after -3s
2025-10-26 02:22:46 +01:00
2df76d1174 syntax changes 2025-10-26 02:20:56 +01:00
480aa53d96 Update .gitea/workflows/release.yml
Some checks failed
Golang Linting / lint (push) Failing after -4s
2025-10-26 01:17:59 +00:00
8b68078f00 Update .gitea/workflows/release.yml
Some checks failed
Golang Linting / lint (push) Failing after 9s
2025-10-26 01:11:14 +00:00

View File

@@ -1,40 +1,35 @@
name: Release name: go-release
description: Go Release Workflow
on: runs:
push: env:
tags: REGISTRY: gitea.mrcynic.site
- 'v*' runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
jobs: - name: metadata
release: id: meta
env: run: |
REGISTRY: gitea.mrcynic.site echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
runs-on: ubuntu-latest echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
steps: echo DOCKER_ORG=$(echo ${GITEA_REPOSITORY_OWNER} | tr '[:upper:]' '[:lower:]') >> $GITEA_OUTPUT
- name: Checkout repository cat $GITHUB_OUTPUT
uses: actions/checkout@v3
- name: metadata - name: registry login
id: meta uses: docker/login-action@v3
run: | with:
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT registry: ${{ env.REGISTRY }}
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT username: ${{ secrets.REGISTRY_USERNAME }}
echo DOCKER_ORG=$(echo ${GITEA_REPOSITORY_OWNER} | tr '[:upper:]' '[:lower:]') >> $GITEA_OUTPUT password: ${{ secrets.RELEASE_TOKEN }}
cat $GITHUB_OUTPUT
- name: registry login - name: publish docker
uses: docker/login-action@v3 uses: https://github.com/docker/build-push-action@v5
with: with:
registry: ${{ env.REGISTRY }} context: .
username: ${{ secrets.REGISTRY_USERNAME }} file: ./Dockerfile
password: ${{ secrets.RELEASE_TOKEN }} push: true
tags: |
- name: publish docker ${{ env.REGISTRY }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
uses: https://github.com/docker/build-push-action@v5 ${{ env.REGISTRY }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:latest
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
${{ env.REGISTRY }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:latest