Fixing secret
continuous-integration/drone/push Build is passing Details

main
Félix MIELCAREK 1 year ago
parent f66c88da93
commit 11fb3b937b

@ -47,15 +47,15 @@ steps:
password: password:
from_secret: SECRET_REGISTRY_PASSWORD from_secret: SECRET_REGISTRY_PASSWORD
environment: environment:
CODEFIRST_CLIENTDRONE_ENV_MARIADB_USER: MARIADB_USER:
from_secret: db_user from_secret: db_user
CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: MARIADB_PASSWORD:
from_secret: db_password from_secret: db_password
CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE: MARIADB_DATABASE:
from_secret: db_database from_secret: db_database
CODEFIRST_CLIENTDRONE_ENV_CLIENT_ID: CLIENT_ID:
from_secret: spotify_client_id from_secret: spotify_client_id
CODEFIRST_CLIENTDRONE_ENV_CLIENT_SECRET: CLIENT_SECRET:
from_secret: spotify_client_secret from_secret: spotify_client_secret
depends_on: [ create-bigbrother-database ] depends_on: [ create-bigbrother-database ]
@ -66,6 +66,26 @@ steps:
CONTAINERNAME: bigbrotherserver CONTAINERNAME: bigbrotherserver
COMMAND: create COMMAND: create
OVERWRITE: true OVERWRITE: true
MARIADB_USER:
from_secret: db_user
MARIADB_PASSWORD:
from_secret: db_password
MARIADB_DATABASE:
from_secret: db_database
CLIENT_ID:
from_secret: spotify_client_id
CLIENT_SECRET:
from_secret: spotify_client_secret
CODEFIRST_CLIENTDRONE_ENV_MARIADB_USER:
from_secret: db_user
CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD:
from_secret: db_password
CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE:
from_secret: db_database
CODEFIRST_CLIENTDRONE_ENV_CLIENT_ID:
from_secret: spotify_client_id
CODEFIRST_CLIENTDRONE_ENV_CLIENT_SECRET:
from_secret: spotify_client_secret
depends_on: [ build-image-server ] depends_on: [ build-image-server ]
# - name: build-image-script # - name: build-image-script

@ -7,8 +7,10 @@ COPY callback-server/package*.json ./callback-server/
RUN npm install ./callback-server RUN npm install ./callback-server
COPY callback-server ./callback-server/ COPY callback-server ./callback-server/
RUN env > .env
# Expose the port the app runs on # Expose the port the app runs on
EXPOSE 80 EXPOSE 80
# Command to run the application # Command to run the application
CMD env > .env && node --env-file=.env callback-server/app.js CMD ["node", "--env-file=.env" , "callback-server/app.js"]
Loading…
Cancel
Save