-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from Gregory-Pereira/cleanup-CI_AUTOMATION-fa…
…ilures-in-worfklow-v3 FIXING CI: make sure to access step output in github action syntax
- Loading branch information
Showing
1 changed file
with
28 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,27 +42,27 @@ jobs: | |
fi | ||
- name: Log in to the GHCR container image registry | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: "${{ env.GHCR_REGISTRY }}" | ||
username: "${{ github.actor }}" | ||
password: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Log in to the Quay container image registry | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: "${{ env.QUAY_REGISTRY }}" | ||
username: "${{ secrets.QUAY_USERNAME }}" | ||
password: "${{ secrets.QUAY_TOKEN }}" | ||
|
||
- name: Set up Docker Buildx | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Cache Docker layers | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/.buildx-cache | ||
|
@@ -71,7 +71,7 @@ jobs: | |
"${{ runner.os }}-buildx-" | ||
- name: Get Pull Request Number from Commit | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: get_pr_number | ||
uses: actions/github-script@v7 | ||
with: | ||
|
@@ -101,21 +101,21 @@ jobs: | |
return ''; | ||
- name: Extract GHCR metadata (tags, labels) for UI image | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: ghcr_ui_meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.GHCR_REGISTRY }}/${{ env.GHCR_UI_IMAGE_NAME }} | ||
|
||
- name: Extract Quay metadata (tags, labels) for UI image | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: quay_ui_meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.QUAY_REGISTRY }}/${{ env.QUAY_UI_IMAGE_NAME }} | ||
|
||
- name: Build and push ui image to ghcr.io | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: push-ui-ghcr | ||
uses: docker/build-push-action@v6 | ||
with: | ||
|
@@ -131,15 +131,15 @@ jobs: | |
file: src/Containerfile | ||
|
||
- name: Generate GHCR artifact attestation | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.GHCR_REGISTRY }}/${{ env.GHCR_UI_IMAGE_NAME}} | ||
subject-digest: ${{ steps.push-ui-ghcr.outputs.digest }} | ||
push-to-registry: true | ||
|
||
- name: Build and push ui image to quay.io | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: push-ui-quay | ||
uses: docker/build-push-action@v6 | ||
with: | ||
|
@@ -155,20 +155,20 @@ jobs: | |
file: src/Containerfile | ||
|
||
- name: Generate QA UI Quay artifact attestation | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.QUAY_REGISTRY }}/${{ env.QUAY_UI_IMAGE_NAME}} | ||
subject-digest: ${{ steps.push-ui-quay.outputs.digest }} | ||
push-to-registry: true | ||
|
||
- name: Update coderefs before code changes | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
run: |- | ||
git pull --ff-only | ||
- name: Update QA Quay UI image | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: update_qa_ui_manifest_image | ||
env: | ||
PR_TAG: "pr-${{ steps.get_pr_number.outputs.result }}" | ||
|
@@ -180,7 +180,7 @@ jobs: | |
' deploy/k8s/overlays/openshift/qa/kustomization.yaml | ||
- name: Commit and push bump QA UI Image manifest | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
run: |- | ||
git config user.name "platform-engineering-bot" | ||
git config user.email "[email protected]" | ||
|
@@ -216,27 +216,27 @@ jobs: | |
fi | ||
- name: Log in to the GHCR container image registry | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.GHCR_REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Log in to the Quay container image registry | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.QUAY_REGISTRY }} | ||
username: ${{ secrets.QUAY_USERNAME }} | ||
password: ${{ secrets.QUAY_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Cache Docker layers | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/.buildx-cache | ||
|
@@ -245,7 +245,7 @@ jobs: | |
${{ runner.os }}-buildx- | ||
- name: Get Pull Request Number from Commit | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: get_pr_number | ||
uses: actions/github-script@v7 | ||
with: | ||
|
@@ -275,21 +275,21 @@ jobs: | |
return ''; | ||
- name: Extract metadata (tags, labels) for pathservice image | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: ghcr_ps_meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.GHCR_REGISTRY }}/${{ env.GHCR_PS_IMAGE_NAME }} | ||
|
||
- name: Extract metadata (tags, labels) for pathservice image | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: quay_ps_meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.QUAY_REGISTRY }}/${{ env.QUAY_PS_IMAGE_NAME }} | ||
|
||
- name: Build and push QA PS image to ghcr.io | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: push-ps-ghcr | ||
uses: docker/build-push-action@v6 | ||
with: | ||
|
@@ -305,15 +305,15 @@ jobs: | |
file: pathservice/Containerfile | ||
|
||
- name: Generate QA PS GHCR artifact attestation | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.GHCR_REGISTRY }}/${{ env.GHCR_PS_IMAGE_NAME}} | ||
subject-digest: ${{ steps.push-ps-ghcr.outputs.digest }} | ||
push-to-registry: true | ||
|
||
- name: Build and push QA PS image to quay.io | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: push-ps-quay | ||
uses: docker/build-push-action@v6 | ||
with: | ||
|
@@ -329,7 +329,7 @@ jobs: | |
file: pathservice/Containerfile | ||
|
||
- name: Generate QA PS Quay artifact attestation | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.QUAY_REGISTRY }}/${{ env.QUAY_PS_IMAGE_NAME}} | ||
|
@@ -338,12 +338,12 @@ jobs: | |
|
||
|
||
- name: Update coderefs before code changes | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
run: |- | ||
git pull --ff-only | ||
- name: Update QA PS Quay image | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
id: update_qa_ps_manifest_image | ||
env: | ||
PR_TAG: "pr-${{ steps.get_pr_number.outputs.result }}" | ||
|
@@ -355,7 +355,7 @@ jobs: | |
' deploy/k8s/overlays/openshift/qa/kustomization.yaml | ||
- name: Commit and push bump QA PS Image manifest | ||
if: steps.check_skip.outputs.skip_workflow == 'false' | ||
if: ${{ steps.check_skip.outputs.skip_workflow == 'false' }} | ||
run: |- | ||
git config user.name "platform-engineering-bot" | ||
git config user.email "[email protected]" | ||
|