From 91df8ab0f79af193385571e987f6df7d4d52f5e9 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Wed, 30 Mar 2022 09:09:55 -0400 Subject: [PATCH 1/2] Do not fail devel_images workflow if initial images are missing --- .github/workflows/devel_images.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devel_images.yml b/.github/workflows/devel_images.yml index 95054351e6..a227ca3e66 100644 --- a/.github/workflows/devel_images.yml +++ b/.github/workflows/devel_images.yml @@ -28,8 +28,8 @@ jobs: - name: Pre-pull image to warm build cache run: | - docker pull ghcr.io/${{ github.repository_owner }}/awx_devel:${GITHUB_REF##*/} - docker pull ghcr.io/${{ github.repository_owner }}/awx_kube_devel:${GITHUB_REF##*/} + docker pull ghcr.io/${{ github.repository_owner }}/awx_devel:${GITHUB_REF##*/} || : + docker pull ghcr.io/${{ github.repository_owner }}/awx_kube_devel:${GITHUB_REF##*/} || : - name: Build images run: | From 3ed65ce39e0642bca5bb6e8651a01ca3b4273dfc Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Wed, 30 Mar 2022 09:22:01 -0400 Subject: [PATCH 2/2] Only run devel_images workflow for devel branch in awx repo --- .github/workflows/devel_images.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/devel_images.yml b/.github/workflows/devel_images.yml index a227ca3e66..c0ce1fb204 100644 --- a/.github/workflows/devel_images.yml +++ b/.github/workflows/devel_images.yml @@ -7,6 +7,7 @@ on: - release_* jobs: push: + if: endsWith(github.repository, '/awx') || startsWith(github.ref, 'refs/heads/release_') runs-on: ubuntu-latest permissions: packages: write