From 488ddfa750e56015c3bc75e34ea88d1826b75b9c Mon Sep 17 00:00:00 2001 From: cesar Date: Wed, 27 Nov 2024 13:29:03 +0100 Subject: [PATCH] enhancement: add gh action to push feature branch images --- .github/workflows/feature-branch-image.yml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/feature-branch-image.yml diff --git a/.github/workflows/feature-branch-image.yml b/.github/workflows/feature-branch-image.yml new file mode 100644 index 00000000000..46397c15b46 --- /dev/null +++ b/.github/workflows/feature-branch-image.yml @@ -0,0 +1,23 @@ +--- +name: Build Feature Branch Image +env: + BRANCH_NAME: ${{ github.head_ref }} +on: + workflow_dispatch: + push: + branches: + - feature-* +jobs: + push-feature-image: + runs-on: ubuntu-latest + timeout-minutes: 60 + permissions: + packages: write + contents: read + steps: + - name: Login to quay.io + run: | + podman login -u ${{ secrets.QUAY_ID }} -p ${{ secrets.QUAY_TOKEN }} quay.io + - name: Build and Push Feature Branch Image + run: | + make image -e IMG=quay.io/${{ secrets.QUAY_ORG }}/opendatahub-operator:${{ env.BRANCH_NAME }} \ No newline at end of file