Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build as Arm Arch #10

Merged
merged 2 commits into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.