mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 04:34:27 +00:00
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:
parent
07d0ad0ad7
commit
6d795c089e
1
.github/workflows/ci-nightly.yaml
vendored
1
.github/workflows/ci-nightly.yaml
vendored
@ -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
|
||||||
|
6
.github/workflows/payload-after-push.yaml
vendored
6
.github/workflows/payload-after-push.yaml
vendored
@ -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:
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user