Skip to content

Commit

Permalink
Update deploy-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hong-Mu authored May 6, 2024
1 parent bd0bbed commit 5b8a24b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,6 @@ jobs:
- name: Build with gradle
run: ./gradlew clean build -x test
shell: bash
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ap-northeast-2

- name: Login to Aws ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
run: |
docker build -t $ECR_REGISTRY/${{ secrets.DOCKER_IMAGENAME }} .
docker push $ECR_REGISTRY/${{ secrets.DOCKER_IMAGENAME }}

- name: Docker build, push
run: |
Expand Down

0 comments on commit 5b8a24b

Please sign in to comment.