Skip to content

Commit 71b8eb6

Browse files
lilyLuLiuadrianriobo
authored andcommitted
new action that push qe images for new tag
1 parent 2fa7958 commit 71b8eb6

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Diff for: .github/workflows/qe-image.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Push qe images for new tag
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
env:
7+
IMAGE_REGISTRY: quay.io
8+
jobs:
9+
build:
10+
runs-on: ubuntu-24.04
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
go:
15+
- '1.21'
16+
os: ['linux', 'windows', 'darwin']
17+
arch: ['amd64', 'arm64']
18+
exclude:
19+
- arch: 'arm64'
20+
os: 'windows'
21+
steps:
22+
- name: Check out repository code
23+
uses: actions/checkout@v4
24+
- name: Log in to Quay.io
25+
uses: redhat-actions/podman-login@v1
26+
with:
27+
username: ${{ secrets.QUAY_IO_USERNAME }}
28+
password: ${{ secrets.QUAY_IO_PASSWORD }}
29+
registry: ${{ env.IMAGE_REGISTRY }}
30+
- name: create script of building and push images
31+
run: |
32+
cat <<EOF > build-qe-images.sh
33+
!#/bin/bash
34+
set -x
35+
OS=${{matrix.os}} ARCH=${{matrix.arch}} CRC_INTEGRATION_IMG_VERSION=${{ github.ref_name }} make containerized_integration
36+
podman push quay.io/crcont/crc-integration:${{ github.ref_name }}-${{matrix.os}}-${{matrix.arch}}
37+
OS=${{matrix.os}} ARCH=${{matrix.arch}} CRC_E2E_IMG_VERSION=${{ github.ref_name }} make containerized_e2e
38+
podman push quay.io/crcont/crc-e2e:${{ github.ref_name }}-${{matrix.os}}-${{matrix.arch}}
39+
EOF
40+
- name: run script to build and push images
41+
run: |
42+
chmod +x build-qe-images.sh
43+
./build-qe-images.sh

0 commit comments

Comments
 (0)