spencerlepine / woofer

Dating app for pets - a full stack MERN project. Complete with CI/CD pipeline w/ Jest, GitHub Actions, Docker Hub, and AWS EC2
https://youtu.be/aiJhCoZRc78
2 stars 1 forks source link

Production SSH ENV file bug #64

Closed spencerlepine closed 2 years ago

spencerlepine commented 2 years ago

The ENV file is generated with GitHub Secrets on the EC2 instance. When the SHH GitHub Action copies these values to a file, it leaves DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi; lines in between.

NODE_ENV="production"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
SERVER_URL="/"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
PORT="5000"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
MONGODB_URL="mongodb+srv://username:s@cluster0.5afsadfsfd123124.dqf6a.mongodb.net/database?retryWrites
=true&w=majority"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
SKIP_PREFLIGHT_CHECK="true"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
REACT_APP_FIREBASE_API_KEY="Aasfljhg1093845jehwglq3ij1"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
REACT_APP_FIREBASE_AUTH_DOMAIN="app-development.firebaseapp.com"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
REACT_APP_FIREBASE_PROJECT_ID="app-development"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
REACT_APP_FIREBASE_STORAGE_BUCKET="app-development.appspot.com"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
REACT_APP_FIREBASE_MESSAGING_SENDER_ID="123948120515"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
REACT_APP_FIREBASE_APP_ID="1:892189501923:web:01hjg93uhg8g4g3tg2"
DRONE_SSH_PREV_COMMAND_EXIT_CODE=0 ; if [ 0 -ne 0 ]; then exit 0; fi;
REACT_APP_FIREBASE_MEASUREMENT_ID="ALJG8583SF7"