Skip to content

Commit

Permalink
♻️ ::
Browse files Browse the repository at this point in the history
  • Loading branch information
gurdl0525 committed Oct 18, 2023
1 parent 2787c20 commit 8bd295a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ecr-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-outputs: true
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
Expand All @@ -43,6 +34,15 @@ jobs:
version=$(jq -r .version package.json)-$(date '+%Y%m%d-%H%M%S')
echo "::set-output name=version::$version"
echo "::set-output name=tag::$ECR_REGISTRY/$ECR_REPOSITORY:$version"
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-outputs: true
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build, tag, and push image to Amazon ECR
uses: docker/build-push-action@v3
Expand Down

0 comments on commit 8bd295a

Please sign in to comment.