Skip to content

Commit

Permalink
echo image and use it later instead of trying to rebuild it
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRushton committed Aug 9, 2024
1 parent 69b6950 commit d6435ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ jobs:
run: |
./buildEventManagementAgentDocker.sh -t main
ECR_DOCKER_IMAGE="${{ steps.login-ecr.outputs.registry }}/${{ github.event.repository.name }}:main"
echo "ECR_DEV_IMAGE=$ECR_DEV_IMAGE" >> $GITHUB_ENV
docker tag "${{ github.event.repository.name }}:main" $ECR_DOCKER_IMAGE
docker push $ECR_DOCKER_IMAGE
#Tag/Push additional Docker image
Expand Down Expand Up @@ -171,10 +172,7 @@ jobs:
# uses: aws-actions/[email protected]
- name: ECR (Dev) - Pull Image
run: |
ECR_DEV_IMAGE="${{ steps.login-ecr.outputs.registry }}/${{ github.event.repository.name }}:main"
docker pull $ECR_DEV_IMAGE
echo "ECR_DEV_IMAGE=$ECR_DEV_IMAGE" >> $GITHUB_ENV
- name: GCR (Staging) - Login
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit d6435ae

Please sign in to comment.