-
Notifications
You must be signed in to change notification settings - Fork 151
36 lines (35 loc) · 1.1 KB
/
feature-branch-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: Build and Push Feature Branch Custom Catalog
env:
BUNDLE_IMG: quay.io/${{ secrets.QUAY_ORG }}/opendatahub-operator:${{ github.head_ref }}
CATALOG_IMG: quay.io/${{ secrets.QUAY_ORG }}/opendatahub-operator-catalog:${{ github.head_ref }}
on:
pull_request:
branches:
- "feature-**"
permissions:
contents: read
pull-requests: read
checks: read
jobs:
show-vars:
runs-on: ubuntu-latest
steps:
- name: GitHub Checks
uses: poseidon/wait-for-status-checks@v0.6.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
interval: 60s
build-and-push-feature-branch-custom-catalog:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Login to quay.io
run: |
podman login -u ${{ secrets.QUAY_ID }} -p ${{ secrets.QUAY_TOKEN }} quay.io
- name: Build Feature Branch Catalog
run: |
make catalog-build -e CATALOG_IMG=${{ env.CATALOG_IMG }} -e BUNDLE_IMG=${{ env.BUNDLE_IMG }}
- name: Push Feature Branch Catalog to quay.io
run: |
make catalog-push -e CATALOG_IMG=${{ env.CATALOG_IMG }}