edit build.yml - add metadata step
Build and Push Docker Image / build_and_push (push) Successful in 1m38s
Details
Build and Push Docker Image / build_and_push (push) Successful in 1m38s
Details
This commit is contained in:
parent
66c87b16ff
commit
c784657da2
|
@ -41,15 +41,22 @@ jobs:
|
|||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker image
|
||||
id: metadata
|
||||
uses: docker/metadata-action@v3
|
||||
with:
|
||||
images: git.coopgo.io/${{gitea.repository}}
|
||||
tags: ${{gitea.ref_name}}
|
||||
flavor: |
|
||||
latest=auto
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
git.coopgo.io/${{gitea.repository}}:${{ gitea.ref_name }}
|
||||
flavor: |
|
||||
latest=auto
|
||||
${{ steps.metadata.outputs.tags }}
|
||||
build-args: |
|
||||
ACCESS_TOKEN_USR=${{gitea.actor}}
|
||||
ACCESS_TOKEN_PWD=${{gitea.token}}
|
||||
|
|
Loading…
Reference in New Issue