edit build.yml - back to base
Build and Push Docker Image / build_and_push (push) Successful in 1m36s Details

This commit is contained in:
Nicolas CARON 2024-04-03 11:08:35 +02:00
parent 053066b511
commit 284e3c918a
1 changed files with 0 additions and 5 deletions

View File

@ -41,10 +41,6 @@ jobs:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Determine if it's a tag or a branch
id: tag_or_branch
run: echo ::set-output name=is_tag::$(if [[ $GITHUB_REF == refs/tags/* ]]; then echo true; else echo false; fi)
- name: Build and push
uses: docker/build-push-action@v5
with:
@ -52,7 +48,6 @@ jobs:
push: true
tags: |
git.coopgo.io/${{gitea.repository}}:${{ gitea.ref_name }}
git.coopgo.io/${{gitea.repository}}:${{ steps.tag_or_branch.outputs.is_tag == 'true' ? '' : ',latest' }}
build-args: |
ACCESS_TOKEN_USR=${{gitea.actor}}
ACCESS_TOKEN_PWD=${{gitea.token}}