mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
gha: ci: Use $VAR instead of ${{ env.VAR }}
Otherwise we'll get the following error from the workflow: ``` The workflow is not valid. .github/workflows/ci-on-push.yaml (Line: 24, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.COMMIT_HASH .github/workflows/ci-on-push.yaml (Line: 25, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PR_NUMBER ``` Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
1a4ae1ef47
commit
de83cd9de7
6
.github/workflows/ci-nightly.yaml
vendored
6
.github/workflows/ci-nightly.yaml
vendored
@ -15,6 +15,6 @@ jobs:
|
||||
kata-containers-ci-on-push:
|
||||
uses: ./.github/workflows/ci.yaml
|
||||
with:
|
||||
commit-hash: ${{ env.COMMIT_HASH }}
|
||||
pr-number: ${{ env.PR_NUMBER }}
|
||||
tag: ${{ env.PR_NUMBER }}-${{ env.COMMIT_HASH }}-nightly
|
||||
commit-hash: $COMMIT_HASH
|
||||
pr-number: $PR_NUMBER
|
||||
tag: $PR_NUMBER-$COMMIT_HASH-nightly
|
||||
|
6
.github/workflows/ci-on-push.yaml
vendored
6
.github/workflows/ci-on-push.yaml
vendored
@ -21,6 +21,6 @@ jobs:
|
||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
||||
uses: ./.github/workflows/ci.yaml
|
||||
with:
|
||||
commit-hash: ${{ env.COMMIT_HASH }}
|
||||
pr-number: ${{ env.PR_NUMBER }}
|
||||
tag: ${{ env.PR_NUMBER }}-${{ env.COMMIT_HASH }}
|
||||
commit-hash: $COMMIT_HASH
|
||||
pr-number: $PR_NUMBER
|
||||
tag: $PR_NUMBER-$COMMIT_HASH
|
||||
|
12
.github/workflows/payload-after-push.yaml
vendored
12
.github/workflows/payload-after-push.yaml
vendored
@ -12,21 +12,21 @@ jobs:
|
||||
build-assets-amd64:
|
||||
uses: ./.github/workflows/build-kata-static-tarball-amd64.yaml
|
||||
with:
|
||||
commit-hash: ${{ env.COMMIT_HASH }}
|
||||
commit-hash: $COMMIT_HASH
|
||||
push-to-registry: yes
|
||||
secrets: inherit
|
||||
|
||||
build-assets-arm64:
|
||||
uses: ./.github/workflows/build-kata-static-tarball-arm64.yaml
|
||||
with:
|
||||
commit-hash: ${{ env.COMMIT_HASH }}
|
||||
commit-hash: $COMMIT_HASH
|
||||
push-to-registry: yes
|
||||
secrets: inherit
|
||||
|
||||
build-assets-s390x:
|
||||
uses: ./.github/workflows/build-kata-static-tarball-s390x.yaml
|
||||
with:
|
||||
commit-hash: ${{ env.COMMIT_HASH }}
|
||||
commit-hash: $COMMIT_HASH
|
||||
push-to-registry: yes
|
||||
secrets: inherit
|
||||
|
||||
@ -34,7 +34,7 @@ jobs:
|
||||
needs: build-assets-amd64
|
||||
uses: ./.github/workflows/publish-kata-deploy-payload-amd64.yaml
|
||||
with:
|
||||
commit-hash: ${{ env.COMMIT_HASH }}
|
||||
commit-hash: $COMMIT_HASH
|
||||
registry: quay.io
|
||||
repo: kata-containers/kata-deploy-ci
|
||||
tag: kata-containers-amd64
|
||||
@ -44,7 +44,7 @@ jobs:
|
||||
needs: build-assets-arm64
|
||||
uses: ./.github/workflows/publish-kata-deploy-payload-arm64.yaml
|
||||
with:
|
||||
commit-hash: ${{ env.COMMIT_HASH }}
|
||||
commit-hash: $COMMIT_HASH
|
||||
registry: quay.io
|
||||
repo: kata-containers/kata-deploy-ci
|
||||
tag: kata-containers-arm64
|
||||
@ -54,7 +54,7 @@ jobs:
|
||||
needs: build-assets-s390x
|
||||
uses: ./.github/workflows/publish-kata-deploy-payload-s390x.yaml
|
||||
with:
|
||||
commit-hash: ${{ env.COMMIT_HASH }}
|
||||
commit-hash: $COMMIT_HASH
|
||||
registry: quay.io
|
||||
repo: kata-containers/kata-deploy-ci
|
||||
tag: kata-containers-s390x
|
||||
|
Loading…
Reference in New Issue
Block a user