Skip to content

Commit

Permalink
error is sed during deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
leoBitto committed Apr 7, 2024
1 parent 84f3224 commit 1416f5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
echo "DATABASE=postgres" >> "/opt/${{ env.REPO_NAME }}/config/.env"
echo "EMAIL=${{ secrets.EMAIL }}" >> "/opt/${{ env.REPO_NAME }}/config/.env"
echo "DOMAIN=${{ secrets.DOMAIN }}" >> "/opt/${{ env.REPO_NAME }}/config/.env"
cat "/opt/${{ env.REPO_NAME }}/config/.env"
- name: SCP Docker Compose file and Nginx conf
uses: appleboy/scp-action@master
Expand All @@ -134,7 +135,7 @@ jobs:
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: |
sed -i "s/mydomain.com/${{ secrets.DOMAIN }}/g" /opt/${{ env.REPO_NAME }}/nginx/nginx.prod.conf
sed -i "s/yourdomain.com/${{ secrets.DOMAIN }}/g" /opt/${{ env.REPO_NAME }}/nginx/nginx.prod.conf
- name: Upgrade server and install Docker
uses: appleboy/ssh-action@v0.1.3
Expand Down
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ the actions read from the secrets of github, they contain the following informat
1. **POSTGRES_USER** -> the name of the db user (POSTGRES)
1. **POSTGRES_PASSWORD** -> the password of the db (POSTGRES)
1. **DOMAIN** -> names of the domain (NGINX) if you don't have a domain yet use the ip adress of the droplet
1. **EMAIL** -> add a valid email for SSL (CERTBOT)
other info used by the droplet and the container registry:
1. **PRIVATE_KEY**-> private key from server
1. **PRIVATE_KEY** -> private key from server
1. **GHCR_TOKEN** -> [token of github](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
1. **HOST** -> droplet IP address
1. **USERNAME** -> root
Expand Down

0 comments on commit 1416f5f

Please sign in to comment.