Skip to content

Commit

Permalink
Build as Arm Arch (#10)
Browse files Browse the repository at this point in the history
* build ad arm

* remove dev stack
  • Loading branch information
BlueHorn07 authored Mar 17, 2024
1 parent 09154d1 commit 8715a54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 33 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/github-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: 'arm64' # support AWS EC2 t4g
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -41,6 +43,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64 # support AWS EC2 t4g
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand All @@ -52,9 +55,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check the deployed service URL
uses: jtalk/url-health-check-action@v3
uses: jtalk/url-health-check-action@v4
with:
url: https://api.poapper.club|https://api-dev.poapper.club
url: https://api.poapper.club
follow-redirect: true
max-attempts: 3
retry-delay: 10s
23 changes: 3 additions & 20 deletions docker-stack.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
version: '3.3'
services:
dev:
image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/poapper-api:latest
ports:
- 6001:4000
secrets:
- source: poapper_api_dot_env
target: /usr/src/app/.env
logging:
driver: local
options:
max-size: 10m
deploy:
labels:
swarmpit.service.deployment.autoredeploy: 'true'
placement:
constraints:
- node.role != manager
- node.labels.application == poapper_web
prod:
image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/poapper-api:vX.X.X
# image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/poapper-api:vX.X.X
image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/poapper-api:latest
ports:
- 4001:4000
secrets:
Expand All @@ -35,7 +18,7 @@ services:
placement:
constraints:
- node.role != manager
- node.labels.application == poapper_web
- node.labels.application == popo

secrets:
poapper_api_dot_env:
Expand Down
11 changes: 0 additions & 11 deletions nginx/poapper-api-dev.nginx

This file was deleted.

0 comments on commit 8715a54

Please sign in to comment.