Skip to content

Commit

Permalink
chore: linux/arm64/v8 빌드 삭제 및 workflows 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
yubinquitous committed Oct 23, 2023
1 parent 845e665 commit f84343e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Add ssh file
- name: Add ssh key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.API_GATEWAY_SSH }}" > ~/.ssh/id_rsa
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
id: build-image
run: |
docker buildx create --use --name arm64-my-builder
docker buildx build --platform linux/arm64,linux/arm64/v8 -t ${{ secrets.ECR_REGISTRY }}/${{ secrets.ECR_REPOSITORY }}:${{ secrets.ECR_IMAGE_TAG }} . --push
docker buildx build --platform linux/arm64 -t ${{ secrets.ECR_REGISTRY }}/${{ secrets.ECR_REPOSITORY }}:${{ secrets.ECR_IMAGE_TAG }} . --push
deploy:
needs: build
Expand All @@ -59,7 +59,7 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- name: Stop and Delete container
- name: Stop and remove previous container
run: |
cd ~/api-gateway
docker-compose down --rmi all
Expand All @@ -68,7 +68,7 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Restart container
- name: Pull image from Amazon ECR and run container
continue-on-error: true
run: |
cd ~/api-gateway
Expand Down

0 comments on commit f84343e

Please sign in to comment.