Update .gitea/workflows/deploy.yml
This commit is contained in:
@@ -8,8 +8,8 @@ on:
|
|||||||
env:
|
env:
|
||||||
# Global Env Variables readable in all jobs of this workflow
|
# Global Env Variables readable in all jobs of this workflow
|
||||||
MONGODB_CLUSTER_ADDRESS: coursow-de.bwnpjvo.mongodb.net
|
MONGODB_CLUSTER_ADDRESS: coursow-de.bwnpjvo.mongodb.net
|
||||||
MONGODB_USERNAME: ${{secrets.MONGODB_USER}}
|
MONGODB_USERNAME: ${{secrets.MONGODB_USER}} # Added / configured in Repo Action Settings UI
|
||||||
MONGODB_PASSWORD: ${{secrets.MONGODB_PASSWORD}}
|
MONGODB_PASSWORD: ${{secrets.MONGODB_PASSWORD}} # Added / configured in Repo Action Settings UI
|
||||||
MONGODB_DB_NAME: actions-environment
|
MONGODB_DB_NAME: actions-environment
|
||||||
WEB_PORT: 8080
|
WEB_PORT: 8080
|
||||||
|
|
||||||
@@ -55,3 +55,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "$ONLY_HERE" # Will not work... As it is not defined in global env or this 'deploy' job env
|
echo "$ONLY_HERE" # Will not work... As it is not defined in global env or this 'deploy' job env
|
||||||
echo "$MONGODB_USERNAME" # Works... Will return a value as defined in global env
|
echo "$MONGODB_USERNAME" # Works... Will return a value as defined in global env
|
||||||
|
# But will NOT print the real username value as it is a "secret" (will print *****)
|
||||||
|
|||||||
Reference in New Issue
Block a user