chore(e2e): rhidp-6351 Update Dockerfile, workflows, and scripts for Yarn support #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Push e2e-runner Image to Quay.io | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.ibm/images/Dockerfile' | |
- '.yarnrc.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
REGISTRY: quay.io | |
REGISTRY_IMAGE: rhdh-community/rhdh-e2e-runner | |
IMAGE_TAG: main | |
jobs: | |
build-image: | |
name: Build & Push e2e-runner Image | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04] | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Prepare Environment Variables | |
run: | | |
echo "PLATFORM=linux/amd64" >> $GITHUB_ENV | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Quay.io | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_TOKEN }} | |
- name: Build and Push Image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: .ibm/images/Dockerfile | |
push: true | |
tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }} | |
platforms: ${{ env.PLATFORM }} |