From 8023d64b1a246e4dfe564ade091d0dcdec2fcc6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 27 Feb 2024 11:36:46 +0100 Subject: [PATCH] release: Adjust "needs" in the release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without those we'll end up running steps in parallel that should actually wait for a previous step to be completed. While here, let's also correct some of the "needs" that were waiting fro the wrong workflow to be finished. Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/release.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e54c356f2b..b52c9e64f7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -33,24 +33,28 @@ jobs: GH_TOKEN: ${{ github.token }} build-and-push-assets-amd64: + needs: release uses: ./.github/workflows/release-amd64.yaml with: target-arch: amd64 secrets: inherit build-and-push-assets-arm64: + needs: release uses: ./.github/workflows/release-arm64.yaml with: target-arch: arm64 secrets: inherit build-and-push-assets-s390x: + needs: release uses: ./.github/workflows/release-s390x.yaml with: target-arch: s390x secrets: inherit build-and-push-assets-ppc64le: + needs: release uses: ./.github/workflows/release-ppc64le.yaml with: target-arch: ppc64le @@ -86,7 +90,7 @@ jobs: KATA_DEPLOY_REGISTRIES: "quay.io/kata-containers/kata-deploy docker.io/katadocker/kata-deploy" upload-multi-arch-static-tarball: - needs: publish-multi-arch-images + needs: [build-and-push-assets-amd64, build-and-push-assets-arm64, build-and-push-assets-s390x, build-and-push-assets-ppc64le] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -141,6 +145,7 @@ jobs: ARCHITECTURE: ppc64le upload-versions-yaml: + needs: release runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -151,7 +156,7 @@ jobs: GH_TOKEN: ${{ github.token }} upload-cargo-vendored-tarball: - needs: upload-multi-arch-static-tarball + needs: release runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -162,7 +167,7 @@ jobs: GH_TOKEN: ${{ github.token }} upload-libseccomp-tarball: - needs: upload-cargo-vendored-tarball + needs: release runs-on: ubuntu-latest steps: - uses: actions/checkout@v4