test: heredoc
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
name: Deploy Test6
|
||||
run-name: Deploy Test6
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
ENV_TMPFILE: /tmp/nexus-deploy-env
|
||||
DEPLOY_PATH: /home/test
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
- name: Test heredoc
|
||||
run: |
|
||||
HOST_OWNER_PASSWORD="testpass"
|
||||
cat > "${ENV_TMPFILE}" <<ENVEOF
|
||||
POSTGRES_DB=nexus
|
||||
POSTGRES_USER=nexus
|
||||
POSTGRES_PASSWORD=secret
|
||||
JWT_KEY=key123
|
||||
OWNER_PASSWORD=${HOST_OWNER_PASSWORD}
|
||||
ENVEOF
|
||||
echo "OK"
|
||||
Reference in New Issue
Block a user