mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 15:32:30 +00:00
Revert "gha: ci-on-push: Adapt chained jobs to workflow_run"
This reverts commit 7855b43062
.
Unfortunately we have to revert the PRs related to the switch done to
using `workflow_run` instead of `pull_request_target`. The reason for
that being that we can only mark jobs as required if they are targetting
PRs.
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
5d4d720647
commit
c7ee45f7e5
@ -2,10 +2,6 @@ name: CI | Build kata-static tarball for amd64
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
checkout-ref:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ${{ github.sha }}
|
|
||||||
tarball-suffix:
|
tarball-suffix:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -33,7 +29,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
fetch-depth: 0 # This is needed in order to keep the commit ids history
|
fetch-depth: 0 # This is needed in order to keep the commit ids history
|
||||||
- name: Build ${{ matrix.asset }}
|
- name: Build ${{ matrix.asset }}
|
||||||
run: |
|
run: |
|
||||||
@ -60,7 +56,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
- name: get-artifacts
|
- name: get-artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -2,10 +2,6 @@ name: CI | Build kata-static tarball for arm64
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
checkout-ref:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ${{ github.sha }}
|
|
||||||
tarball-suffix:
|
tarball-suffix:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -37,7 +33,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
fetch-depth: 0 # This is needed in order to keep the commit ids history
|
fetch-depth: 0 # This is needed in order to keep the commit ids history
|
||||||
- name: Build ${{ matrix.asset }}
|
- name: Build ${{ matrix.asset }}
|
||||||
run: |
|
run: |
|
||||||
@ -68,7 +64,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
- name: get-artifacts
|
- name: get-artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -2,10 +2,6 @@ name: CI | Build kata-static tarball for s390x
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
checkout-ref:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ${{ github.sha }}
|
|
||||||
tarball-suffix:
|
tarball-suffix:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -33,7 +29,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
fetch-depth: 0 # This is needed in order to keep the commit ids history
|
fetch-depth: 0 # This is needed in order to keep the commit ids history
|
||||||
- name: Build ${{ matrix.asset }}
|
- name: Build ${{ matrix.asset }}
|
||||||
run: |
|
run: |
|
||||||
@ -65,7 +61,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
- name: get-artifacts
|
- name: get-artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
3
.github/workflows/ci-on-push.yaml
vendored
3
.github/workflows/ci-on-push.yaml
vendored
@ -11,14 +11,12 @@ jobs:
|
|||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
uses: ./.github/workflows/build-kata-static-tarball-amd64.yaml
|
uses: ./.github/workflows/build-kata-static-tarball-amd64.yaml
|
||||||
with:
|
with:
|
||||||
checkout-ref: ${{ github.event.workflow_run.head_sha }}
|
|
||||||
tarball-suffix: -${{ github.event.workflow_run.head_sha }}
|
tarball-suffix: -${{ github.event.workflow_run.head_sha }}
|
||||||
|
|
||||||
publish-kata-deploy-payload-amd64:
|
publish-kata-deploy-payload-amd64:
|
||||||
needs: build-kata-static-tarball-amd64
|
needs: build-kata-static-tarball-amd64
|
||||||
uses: ./.github/workflows/publish-kata-deploy-payload-amd64.yaml
|
uses: ./.github/workflows/publish-kata-deploy-payload-amd64.yaml
|
||||||
with:
|
with:
|
||||||
checkout-ref: ${{ github.event.workflow_run.head_sha }}
|
|
||||||
tarball-suffix: -${{ github.event.workflow_run.head_sha }}
|
tarball-suffix: -${{ github.event.workflow_run.head_sha }}
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
||||||
@ -29,7 +27,6 @@ jobs:
|
|||||||
needs: publish-kata-deploy-payload-amd64
|
needs: publish-kata-deploy-payload-amd64
|
||||||
uses: ./.github/workflows/run-k8s-tests-on-aks.yaml
|
uses: ./.github/workflows/run-k8s-tests-on-aks.yaml
|
||||||
with:
|
with:
|
||||||
checkout-ref: ${{ github.event.workflow_run.head_sha }}
|
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
||||||
tag: ${{ github.event.workflow_run.head_sha }}-amd64
|
tag: ${{ github.event.workflow_run.head_sha }}-amd64
|
||||||
|
@ -2,10 +2,6 @@ name: CI | Publish kata-deploy payload for amd64
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
checkout-ref:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ${{ github.sha }}
|
|
||||||
tarball-suffix:
|
tarball-suffix:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -25,7 +21,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: get-kata-tarball
|
- name: get-kata-tarball
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
@ -2,10 +2,6 @@ name: CI | Publish kata-deploy payload for arm64
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
checkout-ref:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ${{ github.sha }}
|
|
||||||
tarball-suffix:
|
tarball-suffix:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -29,7 +25,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: get-kata-tarball
|
- name: get-kata-tarball
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
@ -2,10 +2,6 @@ name: CI | Publish kata-deploy payload for s390x
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
checkout-ref:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ${{ github.sha }}
|
|
||||||
tarball-suffix:
|
tarball-suffix:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -29,7 +25,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: get-kata-tarball
|
- name: get-kata-tarball
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
6
.github/workflows/run-k8s-tests-on-aks.yaml
vendored
6
.github/workflows/run-k8s-tests-on-aks.yaml
vendored
@ -2,10 +2,6 @@ name: CI | Run kubernetes tests on AKS
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
checkout-ref:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ${{ github.sha }}
|
|
||||||
registry:
|
registry:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -34,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.checkout-ref }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
- name: Install `bats`
|
- name: Install `bats`
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
Loading…
Reference in New Issue
Block a user