mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
gha: ci: after-push: Use github.sha to get the last commit reference
As we need to pass down the commit sha to the jobs that will be triggered from the `push` event, we must be careful on what exactly we're using there. At first we were using ${{ github.ref }}, but this turns out to be the **branch name**, rather than the commit hash. In order to actually get the commit hash, Let's use ${{ github.sha }} instead. Fixes: #7247 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
37a9556789
commit
0c1cbd01d8
12
.github/workflows/payload-after-push.yaml
vendored
12
.github/workflows/payload-after-push.yaml
vendored
@ -9,21 +9,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: ${{ github.ref }}
|
commit-hash: ${{ github.sha }}
|
||||||
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: ${{ github.ref }}
|
commit-hash: ${{ github.sha }}
|
||||||
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: ${{ github.ref }}
|
commit-hash: ${{ github.sha }}
|
||||||
push-to-registry: yes
|
push-to-registry: yes
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
@ -31,7 +31,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: ${{ github.ref }}
|
commit-hash: ${{ github.sha }}
|
||||||
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
|
||||||
@ -41,7 +41,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: ${{ github.ref }}
|
commit-hash: ${{ github.sha }}
|
||||||
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
|
||||||
@ -51,7 +51,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: ${{ github.ref }}
|
commit-hash: ${{ github.sha }}
|
||||||
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