Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Riobo Lorenzo <[email protected]>
  • Loading branch information
adrianriobo committed Aug 1, 2024
1 parent c753702 commit 3ee500b
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 2 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-and-push-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: build-and-push-image

on:

push:
branches:
- main

pull_request:
branches:
- main

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Login to GitHub Container Registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image (post merge)
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
context: .
file: ./oci/Containerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: oci-builds
name: oci-builder

on:
push:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: crc-builder
path: path/*.tar
path: "*.tar"



29 changes: 29 additions & 0 deletions .github/workflows/oci-pusher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: oci-pusher

on:
workflow_run:
workflows: oci-builder
types:
- completed

jobs:
windows-e2e-ocp:
uses: crc-org/crc/.github/workflows/windows-qe-tpl.yml@main
strategy:
fail-fast: false
matrix:
qe-type: ['e2e','integration']
preset: ['openshift', 'microshift', 'all']
exclude:
- qe-type: 'e2e'
preset: 'all'
- qe-type: 'integration'
preset: 'openshift'
- qe-type: 'integration'
preset: 'microshift'
with:
trigger-workflow-run-id: ${{ github.event.workflow_run.id }}
qe-type: ${{matrix.qe-type}}
preset: ${{matrix.preset}}
secrets: inherit

0 comments on commit 3ee500b

Please sign in to comment.