We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e947792 commit 103b25dCopy full SHA for 103b25d
.github/workflows/main.yml
@@ -47,3 +47,17 @@ jobs:
47
- name: Login to Amazon ECR
48
id: login-ecr
49
uses: aws-actions/amazon-ecr-login@v1
50
+
51
+ - name: Build, tag, and push image to Amazon ECR
52
+ id: build-image
53
+ env:
54
+ ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
55
+ ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY_NAME }}
56
+ IMAGE_TAG: latest
57
+ run: |
58
+ # Build a docker container and
59
+ # push it to ECR so that it can
60
+ # be deployed to ECS.
61
+ docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
62
+ docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
63
+ echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
0 commit comments