ci: use branch name as tag

This commit is contained in:
Job
2025-01-25 15:47:41 +01:00
parent f78479fea7
commit 8fa4fa1037

View File

@@ -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 }}