Skip to content

Commit

Permalink
enhancement: add gh action to push feature branch images
Browse files Browse the repository at this point in the history
  • Loading branch information
CFSNM committed Nov 27, 2024
1 parent 7da9176 commit 488ddfa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/feature-branch-image.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 488ddfa

Please sign in to comment.