ci: Add more target-branch related fixes

The ones for the payload-after-push.yamland ci-nightly.yaml are not that
much important right now, but they're needed for when we start running
those on stable branches as well.

The other ones were missed during
bd24afcf73.

Fixes: #7414

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-09-11 20:41:01 +02:00
parent 07d0ad0ad7
commit 6d795c089e
5 changed files with 33 additions and 0 deletions

View File

@ -15,4 +15,5 @@ jobs:
commit-hash: ${{ github.sha }} commit-hash: ${{ github.sha }}
pr-number: "nightly" pr-number: "nightly"
tag: ${{ github.sha }}-nightly tag: ${{ github.sha }}-nightly
target-branch: $GITHUB_REF_NAME
secrets: inherit secrets: inherit

View File

@ -15,6 +15,7 @@ jobs:
with: with:
commit-hash: ${{ github.sha }} commit-hash: ${{ github.sha }}
push-to-registry: yes push-to-registry: yes
target-branch: $GITHUB_REF_NAME
secrets: inherit secrets: inherit
build-assets-arm64: build-assets-arm64:
@ -22,6 +23,7 @@ jobs:
with: with:
commit-hash: ${{ github.sha }} commit-hash: ${{ github.sha }}
push-to-registry: yes push-to-registry: yes
target-branch: $GITHUB_REF_NAME
secrets: inherit secrets: inherit
build-assets-s390x: build-assets-s390x:
@ -29,6 +31,7 @@ jobs:
with: with:
commit-hash: ${{ github.sha }} commit-hash: ${{ github.sha }}
push-to-registry: yes push-to-registry: yes
target-branch: $GITHUB_REF_NAME
secrets: inherit secrets: inherit
publish-kata-deploy-payload-amd64: publish-kata-deploy-payload-amd64:
@ -39,6 +42,7 @@ jobs:
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
target-branch: $GITHUB_REF_NAME
secrets: inherit secrets: inherit
publish-kata-deploy-payload-arm64: publish-kata-deploy-payload-arm64:
@ -49,6 +53,7 @@ jobs:
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
target-branch: $GITHUB_REF_NAME
secrets: inherit secrets: inherit
publish-kata-deploy-payload-s390x: publish-kata-deploy-payload-s390x:
@ -59,6 +64,7 @@ jobs:
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
target-branch: $GITHUB_REF_NAME
secrets: inherit secrets: inherit
publish-manifest: publish-manifest:

View File

@ -17,6 +17,10 @@ on:
commit-hash: commit-hash:
required: false required: false
type: string type: string
target-branch:
required: false
type: string
default: ""
jobs: jobs:
kata-payload: kata-payload:

View File

@ -17,6 +17,10 @@ on:
commit-hash: commit-hash:
required: false required: false
type: string type: string
target-branch:
required: false
type: string
default: ""
jobs: jobs:
kata-payload: kata-payload:
@ -29,6 +33,13 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: ${{ inputs.commit-hash }} ref: ${{ inputs.commit-hash }}
fetch-depth: 0
- name: Rebase atop of the latest target branch
run: |
./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch"
env:
TARGET_BRANCH: ${{ inputs.target-branch }}
- name: get-kata-tarball - name: get-kata-tarball
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3

View File

@ -17,6 +17,10 @@ on:
commit-hash: commit-hash:
required: false required: false
type: string type: string
target-branch:
required: false
type: string
default: ""
jobs: jobs:
kata-payload: kata-payload:
@ -29,6 +33,13 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: ${{ inputs.commit-hash }} ref: ${{ inputs.commit-hash }}
fetch-depth: 0
- name: Rebase atop of the latest target branch
run: |
./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch"
env:
TARGET_BRANCH: ${{ inputs.target-branch }}
- name: get-kata-tarball - name: get-kata-tarball
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3