Skip to content

Commit

Permalink
new action that push qe images for new tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyLuLiu committed Jul 4, 2024
1 parent 22a112d commit e96c37e
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/qe-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Push qe images for new tag
on:
push:
tags:
- '*'
env:
REGISTRY_USER: "crcont+qeghcrc"
IMAGE_REGISTRY: quay.io
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
go:
- '1.20'
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Log in to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}
- name: create script of building and push images
run: |
cat <<EOF > build-qe-images.sh
OS=linux ARCH=amd64 CRC_INTEGRATION_IMG_VERSION=v${1} make containerized_integration
podman push quay.io/crcont/crc-integration:v${1}-linux-amd64
OS=windows ARCH=amd64 CRC_INTEGRATION_IMG_VERSION=v${1} make containerized_integration
podman push quay.io/crcont/crc-integration:v${1}-windows-amd64
OS=darwin ARCH=amd64 CRC_INTEGRATION_IMG_VERSION=v${1} make containerized_integration
podman push quay.io/crcont/crc-integration:v${1}-darwin-amd64
OS=darwin ARCH=arm64 CRC_INTEGRATION_IMG_VERSION=v${1} make containerized_integration
podman push quay.io/crcont/crc-integration:v${1}-darwin-arm64
OS=linux ARCH=amd64 CRC_E2E_IMG_VERSION=v${1} make containerized_e2e
podman push quay.io/crcont/crc-e2e:v${1}-linux-amd64
OS=windows ARCH=amd64 CRC_E2E_IMG_VERSION=v${1} make containerized_e2e
podman push quay.io/crcont/crc-e2e:v${1}-windows-amd64
OS=darwin ARCH=amd64 CRC_E2E_IMG_VERSION=v${1} make containerized_e2e
podman push quay.io/crcont/crc-e2e:v${1}-darwin-amd64
OS=darwin ARCH=arm64 CRC_E2E_IMG_VERSION=v${1} make containerized_e2e
podman push quay.io/crcont/crc-e2e:v${1}-darwin-arm64
EOF
- name: run script to build and push images
env:
TAG_CONTEXT: ${{ toJson(github.ref_name) }}
run: |
chmod +x build-qe-images.sh
./build-qe-images.sh $TAG_CONTEXT

0 comments on commit e96c37e

Please sign in to comment.