ci: add .env creation from secrets in deploy workflow
This commit is contained in:
@@ -11,6 +11,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Create .env file
|
||||||
|
run: |
|
||||||
|
cat > .env <<EOF
|
||||||
|
DIRECTUS_TOKEN=${{ secrets.DIRECTUS_TOKEN }}
|
||||||
|
REVALIDATE_SECRET=${{ secrets.REVALIDATE_SECRET }}
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Build and redeploy
|
- name: Build and redeploy
|
||||||
run: |
|
run: |
|
||||||
docker compose build kotobane
|
docker compose build kotobane
|
||||||
|
|||||||
Reference in New Issue
Block a user