edit build.yml - back to base
Build and Push Docker Image / build_and_push (push) Successful in 1m36s
Details
Build and Push Docker Image / build_and_push (push) Successful in 1m36s
Details
This commit is contained in:
parent
053066b511
commit
284e3c918a
|
@ -41,10 +41,6 @@ jobs:
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
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
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
@ -52,7 +48,6 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
git.coopgo.io/${{gitea.repository}}:${{ gitea.ref_name }}
|
git.coopgo.io/${{gitea.repository}}:${{ gitea.ref_name }}
|
||||||
git.coopgo.io/${{gitea.repository}}:${{ steps.tag_or_branch.outputs.is_tag == 'true' ? '' : ',latest' }}
|
|
||||||
build-args: |
|
build-args: |
|
||||||
ACCESS_TOKEN_USR=${{gitea.actor}}
|
ACCESS_TOKEN_USR=${{gitea.actor}}
|
||||||
ACCESS_TOKEN_PWD=${{gitea.token}}
|
ACCESS_TOKEN_PWD=${{gitea.token}}
|
||||||
|
|
Loading…
Reference in New Issue