ci: use branch name as tag
This commit is contained in:
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
@@ -1,6 +1,8 @@
|
|||||||
name: Build container
|
name: Build container
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 16 * * FRI'
|
- cron: '0 16 * * FRI'
|
||||||
|
|
||||||
@@ -13,14 +15,14 @@ jobs:
|
|||||||
uses: redhat-actions/buildah-build@v2
|
uses: redhat-actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
image: ${{ github.actor }}/${{ github.event.repository.name }}
|
image: ${{ github.actor }}/${{ github.event.repository.name }}
|
||||||
tags: latest
|
tags: ${{ github.ref_name }}
|
||||||
containerfiles: |
|
containerfiles: |
|
||||||
./Containerfile
|
./Containerfile
|
||||||
- name: Push
|
- name: Push
|
||||||
uses: redhat-actions/push-to-registry@v2
|
uses: redhat-actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
image: ${{ github.actor }}/${{ github.event.repository.name }}
|
image: ${{ github.actor }}/${{ github.event.repository.name }}
|
||||||
tags: latest
|
tags: ${{ github.ref_name }}
|
||||||
# extra-args: --compression-format zstd:chunked
|
# extra-args: --compression-format zstd:chunked
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
|
|||||||
Reference in New Issue
Block a user