fix: publish tag workflow
This commit is contained in:
parent
89c0d60843
commit
528f41b3ac
@ -2,7 +2,7 @@
|
||||
# Build docker image
|
||||
#
|
||||
|
||||
name: Build
|
||||
name: BuildMain
|
||||
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
||||
on: [ push ]
|
||||
|
||||
@ -25,7 +25,7 @@ jobs:
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and (do not) push
|
||||
- name: Build and push latest
|
||||
uses: docker/build-push-action@v5
|
||||
env:
|
||||
ACTIONS_RUNTIME_TOKEN: ''
|
||||
|
@ -2,7 +2,7 @@
|
||||
# Build docker image
|
||||
#
|
||||
|
||||
name: Build
|
||||
name: BuildTag
|
||||
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
|
||||
on:
|
||||
push:
|
||||
@ -14,7 +14,6 @@ jobs:
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
runs-on: cth-ubuntu-latest
|
||||
if: gitea.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
@ -28,7 +27,7 @@ jobs:
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and (do not) push
|
||||
- name: Build and push version
|
||||
uses: docker/build-push-action@v5
|
||||
env:
|
||||
ACTIONS_RUNTIME_TOKEN: ''
|
||||
|
Loading…
Reference in New Issue
Block a user