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"
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.