From 02dda40e1f94d353fff05b517812aa5c4aa93b2e Mon Sep 17 00:00:00 2001 From: Christian Minich Date: Wed, 13 Nov 2024 15:12:06 -0500 Subject: [PATCH] move image tag generation to a higher step --- .github/workflows/deploy-dagster-cloud.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-dagster-cloud.yml b/.github/workflows/deploy-dagster-cloud.yml index 7226854f..b330fbeb 100644 --- a/.github/workflows/deploy-dagster-cloud.yml +++ b/.github/workflows/deploy-dagster-cloud.yml @@ -52,7 +52,13 @@ jobs: - hooli-data-ingest/** hooli-bi: - hooli-bi/** - + + - name: Generate docker image tag + id: generate-image-tag + if: steps.prerun.outputs.result != 'skip' + run: | + echo "IMAGE_TAG=$GITHUB_SHA-$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT" >> $GITHUB_ENV && echo $IMAGE_TAG + - name: Extract changed directories id: extract-changed-dirs run: | @@ -104,12 +110,6 @@ jobs: dagster_cloud_yaml_path: ${{ env.DAGSTER_CLOUD_YAML_PATH }} deployment: 'data-eng-prod' - - name: Generate docker image tag - id: generate-image-tag - if: steps.prerun.outputs.result != 'skip' - run: | - echo "IMAGE_TAG=$GITHUB_SHA-$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT" >> $GITHUB_ENV && echo $IMAGE_TAG - - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3