update yaml #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy website | |
on: | |
push: | |
branches: | |
- using-secrets | |
env: | |
DB_NAME: "my-db" | |
jobs: | |
test-env-vars: | |
environment: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: test environment variables | |
run: | | |
echo "ENV var from yaml env conf - 1" - $DB_NAME | |
echo "ENV var from yaml env conf - 2" - ${{env.DB_NAME}} | |
echo "ENV var from github environment settings" - ${{vars.ENV_DB_NAME}} | |
test-env-secrets: | |
environment: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: test environment secrets | |
run: | | |
echo "ENV secrets from github environment settings" - ${{secrets.MY_SECRET}} | |
echo "Above echo will not print the value, since secret is actually a secret and not exposed anywhere" |