Skip to content

Commit

Permalink
created action for gauzy api stage on digitalOcean droplet
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey1330 committed Mar 3, 2024
1 parent e15a526 commit e0b6e0c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ services:
volumes:
- ./certbot/conf:/etc/letsencrypt:rw
- ./certbot/www:/var/www/certbot:rw

depends_on:
nginx:
condition: service_healthy
command: certonly --webroot -w /var/www/certbot --force-renewal --email ever@ever.tech -d apidemodts.gauzy.co --agree-tos
volumes:
certificates: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ services:
volumes:
- ./certbot/conf:/etc/letsencrypt:rw
- ./certbot/www:/var/www/certbot:rw
depends_on:
nginx:
condition: service_healthy
command: certonly --webroot -w /var/www/certbot --force-renewal --email ever@ever.tech -d apidts.gauzy.co --agree-tos
volumes:
certificates: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ services:
volumes:
- ./certbot/conf:/etc/letsencrypt:rw
- ./certbot/www:/var/www/certbot:rw
depends_on:
nginx:
condition: service_healthy
command: certonly --webroot -w /var/www/certbot --force-renewal --email ever@ever.tech -d apistagedts.gauzy.co --agree-tos
volumes:
certificates: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ http {
allow all;
root /var/www/certbot;
}

location / {
return 301 https://$host$request_uri;
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-do-droplet-pre-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
echo "INGRESS_CERT_TYPE=${{ env.INGRESS_CERT_TYPE }}" >> $GITHUB_ENV
env:
INGRESS_CERT_TYPE: 'cloudflare'
INGRESS_CERT_TYPE: 'letsencrypt'

- name: Generate TLS Secrets for DO Droplet
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-do-droplet-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
echo "UNKNOWN INGRESS_CERT_TYPE"
fi
env:
INGRESS_CERT_TYPE: 'cloudflare'
INGRESS_CERT_TYPE: 'letsencrypt'

- name: Inject secrets into .env-template.compose
run: |
Expand Down

0 comments on commit e0b6e0c

Please sign in to comment.