fix: publish tag workflow
BuildMain / BuildLatest (push) Successful in 7m8s Details
BuildTag / BuildVersion (push) Successful in 7m0s Details

This commit is contained in:
Guillaume 2024-03-26 15:31:18 +01:00
parent 89c0d60843
commit 528f41b3ac
2 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@
# Build docker image # Build docker image
# #
name: Build name: BuildMain
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀 run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on: [ push ] on: [ push ]
@ -25,7 +25,7 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and (do not) push - name: Build and push latest
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
env: env:
ACTIONS_RUNTIME_TOKEN: '' ACTIONS_RUNTIME_TOKEN: ''

View File

@ -2,7 +2,7 @@
# Build docker image # Build docker image
# #
name: Build name: BuildTag
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀 run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on: on:
push: push:
@ -14,7 +14,6 @@ jobs:
env: env:
RUNNER_TOOL_CACHE: /toolcache RUNNER_TOOL_CACHE: /toolcache
runs-on: cth-ubuntu-latest runs-on: cth-ubuntu-latest
if: gitea.ref == 'refs/heads/main'
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -28,7 +27,7 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and (do not) push - name: Build and push version
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
env: env:
ACTIONS_RUNTIME_TOKEN: '' ACTIONS_RUNTIME_TOKEN: ''