mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 07:22:20 +00:00
gha: ci: Avoid using env also in the ci-nightly and payload-after-push
The latter workflow is breaking as it doesn't recognise ${GITHUB_REF}, the former would most likely break as well, but it didn't get triggered yet. The error we're facing is: ``` Determining the checkout info /usr/bin/git branch --list --remote origin/${GITHUB_REF} /usr/bin/git tag --list ${GITHUB_REF} Error: A branch or tag with the name '${GITHUB_REF}' could not be found ``` Fixes: #7247 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
48c3cec1f4
commit
86904909aa
14
.github/workflows/ci-nightly.yaml
vendored
14
.github/workflows/ci-nightly.yaml
vendored
@ -4,18 +4,10 @@ on:
|
|||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
set-fake-pr-number:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Set fake PR number
|
|
||||||
run: |
|
|
||||||
echo "PR_NUMBER=$(date +%Y%m%d%H%M%S)" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
kata-containers-ci-on-push:
|
kata-containers-ci-on-push:
|
||||||
needs: set-fake-pr-number
|
|
||||||
uses: ./.github/workflows/ci.yaml
|
uses: ./.github/workflows/ci.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${GITHUB_REF}
|
commit-hash: ${{ github.ref }}
|
||||||
pr-number: ${PR_NUMBER}
|
pr-number: ${{ github.ref }}
|
||||||
tag: ${PR_NUMBER}-${GITHUB_REF}-nightly
|
tag: ${{ github.ref }}-nightly
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
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.ref }}
|
||||||
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.ref }}
|
||||||
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.ref }}
|
||||||
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.ref }}
|
||||||
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.ref }}
|
||||||
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.ref }}
|
||||||
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