Update .gitea/workflows/deploy.yml
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
- dev
|
||||
|
||||
env:
|
||||
# Global Env Variables readable in all jobs of this workflow
|
||||
MONGODB_CLUSTER_ADDRESS: coursow-de.bwnpjvo.mongodb.net
|
||||
MONGODB_USERNAME: mongo
|
||||
MONGODB_PASSWORD: mongotest
|
||||
@@ -15,7 +16,7 @@ env:
|
||||
jobs:
|
||||
test:
|
||||
env:
|
||||
ONLY_HERE: ofcourse
|
||||
ONLY_HERE: ofcourse # Will be only readable in this 'test' job
|
||||
environment: testing
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -45,12 +46,12 @@ jobs:
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
- name: Output information
|
||||
run: echo "$ONLY_HERE"
|
||||
run: echo "$ONLY_HERE" # Works... Will return a value as defined in this job
|
||||
deploy:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Output information
|
||||
run: |
|
||||
echo "$ONLY_HERE"
|
||||
echo "$MONGODB_USERNAME"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user