generated from openshift/console-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (40 loc) · 1017 Bytes
/
dev-build.yaml
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
37
38
39
40
41
42
43
44
45
46
47
name: Dev Build and Push
on:
push:
branches:
- main
workflow_dispatch:
env:
IMAGE_NAME: quay.io/kuadrant/console-plugin
jobs:
build:
name: Dev Build from Main
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
arch: [amd64, arm64]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install QEMU
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build Image
id: build
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: latest
archs: ${{ matrix.arch }}
containerfiles: |
./Dockerfile
- name: Push Image
uses: redhat-actions/push-to-registry@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_PASSWORD }}
image: ${{ env.IMAGE_NAME }}
tags: latest