fix: publish tag workflow
This commit is contained in:
parent
89c0d60843
commit
528f41b3ac
@ -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: ''
|
||||||
|
@ -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: ''
|
||||||
|
Loading…
Reference in New Issue
Block a user