From df3687446aba5754cd788d8333521bc394390b6e Mon Sep 17 00:00:00 2001 From: Daniel Kaufman <114174502+danielfromearth@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:44:07 -0400 Subject: [PATCH] Update push.yml change docker workflow steps back to "not" feature branch condition --- .github/workflows/push.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ffa6f53..fdc385e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -102,8 +102,7 @@ jobs: echo "venue=ops" >> $GITHUB_ENV - name: Log in to the Container registry - # TODO: change this and subsequent docker steps back to NOT (as follows), after testing in the feature branch --- if: ${{ !startsWith(github.ref, 'refs/heads/feature') }} - if: ${{ startsWith(github.ref, 'refs/heads/feature/') }} + if: ${{ !startsWith(github.ref, 'refs/heads/feature/') }} uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} @@ -111,8 +110,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker -# if: ${{ !startsWith(github.ref, 'refs/heads/feature') }} - if: ${{ startsWith(github.ref, 'refs/heads/feature/') }} + if: ${{ !startsWith(github.ref, 'refs/heads/feature/') }} id: meta uses: docker/metadata-action@v5 with: @@ -129,8 +127,7 @@ jobs: # ${GITHUB_WORKSPACE}/.github/workflows/wait-for-pypi.py ${{env.pyproject_name}}[harmony]==${{ env.software_version }} - name: Build and push Docker image -# if: ${{ !startsWith(github.ref, 'refs/heads/feature') }} - if: ${{ startsWith(github.ref, 'refs/heads/feature/') }} + if: ${{ !startsWith(github.ref, 'refs/heads/feature/') }} id: docker-push uses: docker/build-push-action@v5 with: