mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 04:34:27 +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:
|
kata-containers-ci-on-push:
|
||||||
uses: ./.github/workflows/ci.yaml
|
uses: ./.github/workflows/ci.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${{ env.COMMIT_HASH }}
|
commit-hash: $COMMIT_HASH
|
||||||
pr-number: ${{ env.PR_NUMBER }}
|
pr-number: $PR_NUMBER
|
||||||
tag: ${{ env.PR_NUMBER }}-${{ env.COMMIT_HASH }}-nightly
|
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') }}
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
||||||
uses: ./.github/workflows/ci.yaml
|
uses: ./.github/workflows/ci.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${{ env.COMMIT_HASH }}
|
commit-hash: $COMMIT_HASH
|
||||||
pr-number: ${{ env.PR_NUMBER }}
|
pr-number: $PR_NUMBER
|
||||||
tag: ${{ env.PR_NUMBER }}-${{ env.COMMIT_HASH }}
|
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:
|
build-assets-amd64:
|
||||||
uses: ./.github/workflows/build-kata-static-tarball-amd64.yaml
|
uses: ./.github/workflows/build-kata-static-tarball-amd64.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${{ env.COMMIT_HASH }}
|
commit-hash: $COMMIT_HASH
|
||||||
push-to-registry: yes
|
push-to-registry: yes
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
build-assets-arm64:
|
build-assets-arm64:
|
||||||
uses: ./.github/workflows/build-kata-static-tarball-arm64.yaml
|
uses: ./.github/workflows/build-kata-static-tarball-arm64.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${{ env.COMMIT_HASH }}
|
commit-hash: $COMMIT_HASH
|
||||||
push-to-registry: yes
|
push-to-registry: yes
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
build-assets-s390x:
|
build-assets-s390x:
|
||||||
uses: ./.github/workflows/build-kata-static-tarball-s390x.yaml
|
uses: ./.github/workflows/build-kata-static-tarball-s390x.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${{ env.COMMIT_HASH }}
|
commit-hash: $COMMIT_HASH
|
||||||
push-to-registry: yes
|
push-to-registry: yes
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ jobs:
|
|||||||
needs: build-assets-amd64
|
needs: build-assets-amd64
|
||||||
uses: ./.github/workflows/publish-kata-deploy-payload-amd64.yaml
|
uses: ./.github/workflows/publish-kata-deploy-payload-amd64.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${{ env.COMMIT_HASH }}
|
commit-hash: $COMMIT_HASH
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
repo: kata-containers/kata-deploy-ci
|
repo: kata-containers/kata-deploy-ci
|
||||||
tag: kata-containers-amd64
|
tag: kata-containers-amd64
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
needs: build-assets-arm64
|
needs: build-assets-arm64
|
||||||
uses: ./.github/workflows/publish-kata-deploy-payload-arm64.yaml
|
uses: ./.github/workflows/publish-kata-deploy-payload-arm64.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${{ env.COMMIT_HASH }}
|
commit-hash: $COMMIT_HASH
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
repo: kata-containers/kata-deploy-ci
|
repo: kata-containers/kata-deploy-ci
|
||||||
tag: kata-containers-arm64
|
tag: kata-containers-arm64
|
||||||
@ -54,7 +54,7 @@ jobs:
|
|||||||
needs: build-assets-s390x
|
needs: build-assets-s390x
|
||||||
uses: ./.github/workflows/publish-kata-deploy-payload-s390x.yaml
|
uses: ./.github/workflows/publish-kata-deploy-payload-s390x.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${{ env.COMMIT_HASH }}
|
commit-hash: $COMMIT_HASH
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
repo: kata-containers/kata-deploy-ci
|
repo: kata-containers/kata-deploy-ci
|
||||||
tag: kata-containers-s390x
|
tag: kata-containers-s390x
|
||||||
|
Loading…
Reference in New Issue
Block a user