Skip to content

Commit 934ab72

Browse files
committed
[WIP] push image to registry
1 parent 09f0343 commit 934ab72

File tree

4 files changed

+49
-1
lines changed

4 files changed

+49
-1
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and push
2+
on:
3+
workflow_run:
4+
workflows: ["Dummy run"]
5+
types:
6+
- completed
7+
8+
permissions:
9+
pull-requests: write
10+
contents: write
11+
12+
jobs:
13+
test-run:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- run: echo "this is triggered"
19+
- name: Install latest podman
20+
run: |
21+
bash .github/workflows/scripts/install_latest_podman.sh
22+
- name: Build Image
23+
id: build_image
24+
uses: redhat-actions/buildah-build@v2
25+
with:
26+
image: "opendatahub-tests"
27+
layers: false
28+
tags: ${{ github.event.pull_request.number }}
29+
containerfiles: |
30+
Dockerfile
31+
- name: Podman Login
32+
uses: redhat-actions/podman-login@v1
33+
with:
34+
registry: ${{ secrets.IMAGE_REGISTRY }}
35+
username: ${{ secrets.TEMP_USER }}
36+
password: ${{ secrets.TEMP_TOKEN }}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Dummy run
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
test-run:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- run: echo "this is triggered"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sudo apt-get update
2+
sudo apt-get -y upgrade
3+
sudo apt-get -y install podman

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ IMAGE_BUILD_CMD = $(shell which podman 2>/dev/null || which docker)
22
IMAGE_REGISTRY ?= "quay.io"
33
REGISTRY_NAMESPACE ?= "opendatahub"
44
IMAGE_NAME="opendatahub-tests"
5-
IMAGE_TAG ?= "latest"
5+
IMAGE_TAG ?= "latest-test"
66

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

0 commit comments

Comments
 (0)