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

test: [skip render] create a new container #167

Closed
wants to merge 8 commits into from
Closed
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
17 changes: 9 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Docker Build and Deploy

on:
push:
pull_request:
branches:
- develop

Expand All @@ -14,8 +14,8 @@ jobs:
NODE_ENV: "production"
PUSHER_CLUSTER: ${{ secrets.PUSHER_CLUSTER }}
PUSHER_APP_ID: ${{ secrets.PUSHER_APP_ID }}
PUSHER_APP_KEY: ${{ secrets.PUSHER_APP_KEY }}
PUSHER_APP_SECRET: ${{ secrets.PUSHER_APP_SECRET }}
PUSHER_KEY: ${{ secrets.PUSHER_KEY }}
PUSHER_SECRET: ${{ secrets.PUSHER_SECRET }}
DEVPULSE_EMAIL: ${{ secrets.DEVPULSE_EMAIL }}


Expand All @@ -41,15 +41,18 @@ jobs:
username: ${{ secrets.DO_USERNAME }}
key: ${{ secrets.DO_KEY }}
port: ${{ secrets.DO_PORT }}
envs: MONGO_PROD_DB,REGISTER_FRONTEND_URL,REGISTER_ORG_FRONTEND_URL,NODE_ENV,FRONTEND_LINK,ADMIN_EMAIL,ADMIN_PASS,COORDINATOR_EMAIL,COORDINATOR_PASS,GH_TOKEN
envs: MONGO_PROD_DB,REGISTER_FRONTEND_URL,REGISTER_ORG_FRONTEND_URL,NODE_ENV,FRONTEND_LINK,ADMIN_EMAIL,ADMIN_PASS,COORDINATOR_EMAIL,COORDINATOR_PASS,GH_TOKEN, PUSHER_CLUSTER, PUSHER_APP_ID, PUSHER_KEY, PUSHER_SECRET
script: |
set -e
set -x
touch env
echo "MONGO_PROD_DB=${MONGO_PROD_DB}" > env
echo "FRONTEND_LINK=${FRONTEND_LINK}" >> env
echo "NODE_ENV=${NODE_ENV}" >> env
echo "PUSHER_CLUSTER=${PUSHER_CLUSTER}" >> env
echo "PUSHER_APP_ID=${PUSHER_APP_ID}" >> env
echo "PUSHER_APP_KEY=${PUSHER_APP_KEY}" >> env
echo "PUSHER_APP_SECRET=${PUSHER_APP_SECRET}" >> env
echo "PUSHER_KEY=${PUSHER_KEY}" >> env
echo "PUSHER_SECRET=${PUSHER_SECRET}" >> env
echo "DEVPULSE_EMAIL=${DEVPULSE_EMAIL}" >> env

# Pull the latest image
Expand All @@ -65,5 +68,3 @@ jobs:
--env-file env \
${{ secrets.DOCKER_HUB_USERNAME2 }}/atlp-devpulse-bn:latest

# Clean up
rm env
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ ARG MONGO_PROD_DB
# RUN npm run seed
RUN npm run build
RUN npm prune --omit=dev
EXPOSE 5000
EXPOSE 3000
CMD ["node", "dist/index.js"]