Skip to content

Commit

Permalink
pass go_md5 value to smoke action input (#4865)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 authored Jan 4, 2024
1 parent 5b712cf commit 1860b04
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/actions/smoke-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Run Smoke Tests
description: Run Smoke Tests for the project

inputs:
go_md5:
go-md5:
required: true
type: string
k8s-version:
Expand Down Expand Up @@ -42,7 +42,7 @@ runs:
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/dist
key: nginx-ingress-${{ inputs.go_md5 }}
key: nginx-ingress-${{ inputs.go-md5 }}

- name: Ingress type
id: ingress-type
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
image:
required: true
type: string
go_md5:
go-md5:
required: true
type: string
tag:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ${{ github.workspace }}/dist
key: nginx-ingress-${{ inputs.go_md5 }}
key: nginx-ingress-${{ inputs.go-md5 }}

- name: Setup QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-plus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
target:
required: true
type: string
go_md5:
go-md5:
required: true
type: string
nap_modules:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ${{ github.workspace }}/dist
key: nginx-ingress-${{ inputs.go_md5 }}
key: nginx-ingress-${{ inputs.go-md5 }}

- name: Setup QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ jobs:
smoke-tests:
name: Smoke Tests
runs-on: ubuntu-22.04
needs: setup-matrix
needs: [checks, setup-matrix]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.setup-matrix.outputs.matrix) }}
Expand All @@ -359,6 +359,7 @@ jobs:
nginx-crt: ${{ contains(matrix.images.image, 'nap') && secrets.NGINX_AP_CRT || secrets.NGINX_CRT }}
nginx-key: ${{ contains(matrix.images.image, 'nap') && secrets.NGINX_AP_KEY || secrets.NGINX_KEY }}
azure-ad-secret: ${{ secrets.AZURE_AD_AUTOMATION }}
go-md5: ${{ needs.checks.outputs.go_code_md5 }}

- name: Upload Test Results
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
Expand All @@ -383,7 +384,7 @@ jobs:
with:
platforms: ${{ matrix.platforms }}
image: ${{ matrix.image }}
go_md5: ${{ needs.checks.outputs.go_code_md5 }}
go-md5: ${{ needs.checks.outputs.go_code_md5 }}
permissions:
contents: read
actions: read
Expand All @@ -410,7 +411,7 @@ jobs:
platforms: ${{ matrix.platforms }}
image: ${{ matrix.image }}
target: ${{ matrix.target }}
go_md5: ${{ needs.checks.outputs.go_code_md5 }}
go-md5: ${{ needs.checks.outputs.go_code_md5 }}
release-url: ${{ needs.release-notes.outputs.release-url }}
permissions:
contents: read
Expand All @@ -433,7 +434,7 @@ jobs:
platforms: ${{ matrix.platforms }}
image: ${{ matrix.image }}
target: ${{ matrix.target }}
go_md5: ${{ needs.checks.outputs.go_code_md5 }}
go-md5: ${{ needs.checks.outputs.go_code_md5 }}
nap_modules: ${{ matrix.nap_modules }}
release-url: ${{ needs.release-notes.outputs.release-url }}
permissions:
Expand Down

0 comments on commit 1860b04

Please sign in to comment.