update connection string #13
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: Docker Job | |
on: | |
push: | |
branches: | |
- job-in-container | |
jobs: | |
job-in-container: | |
runs-on: ubuntu-latest | |
container: | |
image: node:18 | |
env: | |
API_URL: some-url.com | |
ports: | |
- 80 | |
steps: | |
- name: Log image node version | |
run: | | |
node -v | |
cat /etc/os-release | |
- name: Log env | |
run: echo $API_URL | |
- name: Create a file | |
run: echo "Dummy text" > text.txt | |
- name: Use a separate container for this step to print content of file created in above step | |
uses: docker://node:20 | |
with: | |
entrypoint: cat | |
args: text.txt |