mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-06 12:06:49 +00:00
GHA: Put all the preliminary steps into pre-action for s390x
This is to introduce a pre-action to all the workflows for building artifacts. The action could take care of tasks such as cleaning up files and reinstalling packages, which prevents a workflow from getting affected by the environment. This also includes the removal of the step `Adjust a permission for repo`, because it could be incorporated into the action. Fixes: #8648 Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
This commit is contained in:
parent
dfaf006fcc
commit
05e278de5b
@ -36,9 +36,8 @@ jobs:
|
|||||||
stage:
|
stage:
|
||||||
- ${{ inputs.stage }}
|
- ${{ inputs.stage }}
|
||||||
steps:
|
steps:
|
||||||
- name: Adjust a permission for repo
|
- name: Take a pre-action for self-hosted runner
|
||||||
run: |
|
run: ${HOME}/script/pre_action.sh ubuntu-2204
|
||||||
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
|
|
||||||
|
|
||||||
- name: Login to Kata Containers quay.io
|
- name: Login to Kata Containers quay.io
|
||||||
if: ${{ inputs.push-to-registry == 'yes' }}
|
if: ${{ inputs.push-to-registry == 'yes' }}
|
||||||
@ -87,9 +86,9 @@ jobs:
|
|||||||
runs-on: s390x
|
runs-on: s390x
|
||||||
needs: build-asset
|
needs: build-asset
|
||||||
steps:
|
steps:
|
||||||
- name: Adjust a permission for repo
|
- name: Take a pre-action for self-hosted runner
|
||||||
run: |
|
run: ${HOME}/script/pre_action.sh ubuntu-2204
|
||||||
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: get-artifacts
|
- name: get-artifacts
|
||||||
@ -131,9 +130,8 @@ jobs:
|
|||||||
runs-on: s390x
|
runs-on: s390x
|
||||||
needs: [build-asset, build-asset-boot-image-se]
|
needs: [build-asset, build-asset-boot-image-se]
|
||||||
steps:
|
steps:
|
||||||
- name: Adjust a permission for repo
|
- name: Take a pre-action for self-hosted runner
|
||||||
run: |
|
run: ${HOME}/script/pre_action.sh ubuntu-2204
|
||||||
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
|
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
5
.github/workflows/ci-nightly-s390x.yaml
vendored
5
.github/workflows/ci-nightly-s390x.yaml
vendored
@ -22,11 +22,6 @@ jobs:
|
|||||||
k8s-cri-containerd-rhel9-e2e-tests:
|
k8s-cri-containerd-rhel9-e2e-tests:
|
||||||
runs-on: s390x-rhel9
|
runs-on: s390x-rhel9
|
||||||
steps:
|
steps:
|
||||||
- name: Delete the existing files
|
|
||||||
run: |
|
|
||||||
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
|
|
||||||
sudo rm -rf $GITHUB_WORKSPACE/*
|
|
||||||
|
|
||||||
- name: Take a pre-action for self-hosted runner
|
- name: Take a pre-action for self-hosted runner
|
||||||
run: |
|
run: |
|
||||||
${HOME}/script/pre_action.sh rhel9-nightly
|
${HOME}/script/pre_action.sh rhel9-nightly
|
||||||
|
@ -26,9 +26,8 @@ jobs:
|
|||||||
kata-payload:
|
kata-payload:
|
||||||
runs-on: s390x
|
runs-on: s390x
|
||||||
steps:
|
steps:
|
||||||
- name: Adjust a permission for repo
|
- name: Take a pre-action for self-hosted runner
|
||||||
run: |
|
run: ${HOME}/script/pre_action.sh ubuntu-2204
|
||||||
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
|
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -29,9 +29,6 @@ jobs:
|
|||||||
GOPATH: ${{ github.workspace }}
|
GOPATH: ${{ github.workspace }}
|
||||||
KATA_HYPERVISOR: ${{ matrix.vmm }}
|
KATA_HYPERVISOR: ${{ matrix.vmm }}
|
||||||
steps:
|
steps:
|
||||||
- name: Adjust a permission for repo
|
|
||||||
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
|
|
||||||
|
|
||||||
- name: Take a pre-action for self-hosted runner
|
- name: Take a pre-action for self-hosted runner
|
||||||
run: ${HOME}/script/pre_action.sh ubuntu-2204
|
run: ${HOME}/script/pre_action.sh ubuntu-2204
|
||||||
|
|
||||||
|
3
.github/workflows/run-k8s-tests-on-zvsi.yaml
vendored
3
.github/workflows/run-k8s-tests-on-zvsi.yaml
vendored
@ -45,9 +45,6 @@ jobs:
|
|||||||
USING_NFD: "true"
|
USING_NFD: "true"
|
||||||
TARGET_ARCH: "s390x"
|
TARGET_ARCH: "s390x"
|
||||||
steps:
|
steps:
|
||||||
- name: Adjust a permission for repo
|
|
||||||
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
|
|
||||||
|
|
||||||
- name: Take a pre-action for self-hosted runner
|
- name: Take a pre-action for self-hosted runner
|
||||||
run: ${HOME}/script/pre_action.sh ubuntu-2204
|
run: ${HOME}/script/pre_action.sh ubuntu-2204
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user