forked from opendatahub-io/opendatahub-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 866 Bytes
/
build-push-image.yml
File metadata and controls
36 lines (33 loc) · 866 Bytes
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
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 }}