Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/build-push-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and push
on:
workflow_run:
workflows: ["Dummy run"]
types:
- completed

permissions:
pull-requests: write
contents: write

jobs:
test-run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: echo "this is triggered"
- name: Install latest podman
run: |
bash .github/workflows/scripts/install_latest_podman.sh
- name: Build Image
id: build_image
uses: redhat-actions/buildah-build@v2
with:
image: "opendatahub-tests"
layers: false
tags: ${{ github.event.pull_request.number }}
containerfiles: |
Dockerfile
- name: Podman Login
uses: redhat-actions/podman-login@v1
with:
registry: ${{ secrets.IMAGE_REGISTRY }}
username: ${{ secrets.TEMP_USER }}
password: ${{ secrets.TEMP_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/dummy_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Dummy run
on:
pull_request:

jobs:
test-run:
runs-on: ubuntu-latest
steps:
- run: echo "this is triggered"
3 changes: 3 additions & 0 deletions .github/workflows/scripts/install_latest_podman.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install podman
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ IMAGE_BUILD_CMD = $(shell which podman 2>/dev/null || which docker)
IMAGE_REGISTRY ?= "quay.io"
REGISTRY_NAMESPACE ?= "opendatahub"
IMAGE_NAME="opendatahub-tests"
IMAGE_TAG ?= "latest"
IMAGE_TAG ?= "latest-test"

FULL_OPERATOR_IMAGE ?= "$(IMAGE_REGISTRY)/$(REGISTRY_NAMESPACE)/$(IMAGE_NAME):$(IMAGE_TAG)"

Expand Down