edit build.yml - back to base
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m36s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m36s
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user