-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove env var and replace with secret
- Loading branch information
1 parent
d8ef610
commit 004e3dd
Showing
2 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,15 +28,12 @@ jobs: | |
curl -L "https://github.com/docker/compose/releases/download/v2.19.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
chmod +x /usr/local/bin/docker-compose | ||
- name: Set up password | ||
run: | | ||
mkdir guestbook | ||
echo ${{ secrets.DB_PASSWORD }} > guestbook/db-password.txt | ||
- name: Run Docker Compose | ||
run: | | ||
export DB_PASSWORD=${{ secrets.DB_PASSWORD }} | ||
export DOCKER_HOST=ssh://[email protected] | ||
docker-compose -f ./compose.prod.yaml up -d | ||
# - name: Copy over the docker compose file | ||
# run: | | ||
# scp -o StrictHostKeyChecking=no compose.prod.yaml [email protected]:guestbook/compose.yaml | ||
# - name: Deploy code via SSH | ||
# run: | | ||
# ssh -o StrictHostKeyChecking=no [email protected] "cd guestbook && docker compose up -d" |
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