From acba8b86dbce8a50d0ef09f0e461579eecad4941 Mon Sep 17 00:00:00 2001 From: Shane Smith Date: Mon, 12 Feb 2024 09:54:22 -0600 Subject: [PATCH] fix: ecr registry not outputting, trying in secondary job --- .github/workflows/release-deploy.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-deploy.yml b/.github/workflows/release-deploy.yml index 7faa0f2cae..f43e5809da 100644 --- a/.github/workflows/release-deploy.yml +++ b/.github/workflows/release-deploy.yml @@ -21,7 +21,6 @@ jobs: needs: [lint-test-build] runs-on: ubuntu-latest outputs: - ecr_registry: ${{ steps.login-ecr.outputs.registry }} postfix: ${{ env.postfix }} gitsha: ${{ steps.gitsha.outputs.value }} steps: @@ -81,14 +80,16 @@ jobs: role-duration-seconds: 1200 role-session-name: SageECRPushSession - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - build_and_push: needs: [setup] runs-on: ubuntu-latest steps: + - name: Login to Amazon ECR + id: login-ecr + uses: aws-actions/amazon-ecr-login@v2 + with: + mask-password: true + - name: Set branch name if not PR if: github.event_name != 'pull_request' run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV @@ -107,7 +108,7 @@ jobs: - name: Build and push docs site uses: docker/build-push-action@v2 env: - ECR_REGISTRY: ${{ needs.setup.outputs.ecr_registry }} + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY_SAGE_DOCS }} IMAGE_SHA_TAG: ${{ needs.setup.outputs.gitsha }} POSTFIX: ${{ needs.setup.outputs.postfix }} @@ -124,7 +125,7 @@ jobs: - name: Build and push storybook uses: docker/build-push-action@v2 env: - ECR_REGISTRY: ${{ needs.setup.outputs.ecr_registry }} + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY_SAGE_STORYBOOK }} IMAGE_SHA_TAG: ${{ needs.setup.outputs.gitsha }} POSTFIX: ${{ needs.setup.outputs.postfix }} @@ -141,7 +142,7 @@ jobs: - name: Build and push sassdocs uses: docker/build-push-action@v2 env: - ECR_REGISTRY: ${{ needs.setup.outputs.ecr_registry }} + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY_SAGE_SASSDOCS }} IMAGE_SHA_TAG: ${{ needs.setup.outputs.gitsha }} POSTFIX: ${{ needs.setup.outputs.postfix }}