Skip to content

Commit

Permalink
Portainer migration (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 authored Apr 26, 2024
1 parent 9364848 commit 9d3326d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/github-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,17 @@ jobs:
cache-to: type=gha,mode=max
push: true

redeploy_dev_service:
name: Redeploy Dev Service
needs: docker_build_and_push
runs-on: ubuntu-latest
steps:
- name: Redeploy Dev Service
run: curl -X POST ${{ secrets.PORTAINER_DEV_SERVICE_WEBHOOK }}

deploy_health_check:
name: Check Application Status
needs: docker_build_and_push
needs: redeploy_dev_service
runs-on: ubuntu-latest
steps:
- name: Check the deployed service URL
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Buile Step
FROM node:20.9-alpine AS builder
FROM node:20-alpine AS builder

WORKDIR /usr/src/app

Expand Down
20 changes: 3 additions & 17 deletions docker-stack.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,19 @@
version: '3.3'
version: '3'
services:
dev:
image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/popo-admin-web:latest
ports:
- 5001:3001
logging:
driver: local
options:
max-size: 10m
deploy:
labels:
swarmpit.service.deployment.autoredeploy: 'true'
placement:
constraints:
- node.role != manager
- node.labels.application == popo
- node.role == manager
prod:
# Prod Image Tag should be updated manually
image: 151345152001.dkr.ecr.ap-northeast-2.amazonaws.com/popo-admin-web:vX.X.X
ports:
- 3001:3001
logging:
driver: local
options:
max-size: 10m
deploy:
labels:
swarmpit.service.deployment.autoredeploy: 'true'
placement:
constraints:
- node.role != manager
- node.labels.application == popo
- node.role == manager

0 comments on commit 9d3326d

Please sign in to comment.