Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ae6aa7a90 | |||
| c784657da2 | |||
| 66c87b16ff | |||
| 284e3c918a | |||
| 053066b511 | |||
| b028120e47 | |||
| d2a8c57274 | |||
| 140d366894 | |||
| a70ef04ffd | |||
| 4c787bdc86 |
@@ -41,13 +41,25 @@ jobs:
|
|||||||
username: ${{ secrets.REGISTRY_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
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: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=tag
|
||||||
|
type=ref,event=pr
|
||||||
|
flavor: |
|
||||||
|
latest=auto
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
git.coopgo.io/${{gitea.repository}}:${{gitea.ref_name}}
|
${{ steps.metadata.outputs.tags }}
|
||||||
build-args: |
|
build-args: |
|
||||||
ACCESS_TOKEN_USR=${{gitea.actor}}
|
ACCESS_TOKEN_USR=${{gitea.actor}}
|
||||||
ACCESS_TOKEN_PWD=${{gitea.token}}
|
ACCESS_TOKEN_PWD=${{gitea.token}}
|
||||||
|
|||||||
Reference in New Issue
Block a user