From ea455df9f41ca921759700625a0fe19d4a198380 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Wed, 19 Jul 2023 09:51:33 -0400 Subject: [PATCH] Only push the production images for main repo (#14261) --- .github/workflows/devel_images.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devel_images.yml b/.github/workflows/devel_images.yml index 6f2bdf74c4..a6d874940f 100644 --- a/.github/workflows/devel_images.yml +++ b/.github/workflows/devel_images.yml @@ -48,8 +48,11 @@ jobs: DEV_DOCKER_TAG_BASE=ghcr.io/${OWNER_LC} COMPOSE_TAG=${GITHUB_REF##*/} make awx-kube-dev-build DEV_DOCKER_TAG_BASE=ghcr.io/${OWNER_LC} COMPOSE_TAG=${GITHUB_REF##*/} make awx-kube-build - - name: Push image + - name: Push development images run: | docker push ghcr.io/${OWNER_LC}/awx_devel:${GITHUB_REF##*/} docker push ghcr.io/${OWNER_LC}/awx_kube_devel:${GITHUB_REF##*/} - docker push ghcr.io/${OWNER_LC}/awx:${GITHUB_REF##*/} + + - name: Push AWX k8s image, only for upstream and feature branches + run: docker push ghcr.io/${OWNER_LC}/awx:${GITHUB_REF##*/} + if: endsWith(github.repository, '/awx')