From 8fa4fa1037c18d297cbe77e19e394210d86236fd Mon Sep 17 00:00:00 2001 From: Job79 Date: Sat, 25 Jan 2025 15:47:41 +0100 Subject: [PATCH] ci: use branch name as tag --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d8eb57a..f97b6af 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,8 @@ name: Build container on: push: + pull_request: + branches: [ "main" ] schedule: - cron: '0 16 * * FRI' @@ -13,14 +15,14 @@ jobs: uses: redhat-actions/buildah-build@v2 with: image: ${{ github.actor }}/${{ github.event.repository.name }} - tags: latest + tags: ${{ github.ref_name }} containerfiles: | ./Containerfile - name: Push uses: redhat-actions/push-to-registry@v2 with: image: ${{ github.actor }}/${{ github.event.repository.name }} - tags: latest + tags: ${{ github.ref_name }} # extra-args: --compression-format zstd:chunked registry: ghcr.io username: ${{ github.actor }}