Skip to content

Commit

Permalink
Create create_cert.yml (#2402)
Browse files Browse the repository at this point in the history
  • Loading branch information
idoktorova authored Nov 30, 2022
1 parent 76cfc96 commit 03503d0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/create_cert.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Create cert
on: [workflow_dispatch]

jobs:
update_certs:
runs-on: vscale
steps:
- uses: actions/checkout@master
- name: Configure secrets
run: |
echo "$S3_KEY"|base64 -d > aws-key.properties
mv docker-compose-run.yml docker-compose.yml
sed -i -e "s/_YANDEX_AUTH_TOKEN_/\\$YANDEX_AUTH_TOKEN/" docker-compose.yml
sed -i -e "s/_YANDEX_FOLDER_ID_/\\$YANDEX_FOLDER_ID/" docker-compose.yml
sed -i -e "s/_POSTGRES_PASSWORD_/\\$POSTGRES_PASSWORD/" docker-compose.yml
sed -i -e "s/_API_GITHUB_TOKEN_/\\$API_GITHUB_TOKEN/" docker-compose.yml
env:
S3_KEY: ${{ secrets.S3_KEY }}
YANDEX_AUTH_TOKEN: ${{ secrets.YANDEX_AUTH_TOKEN }}
YANDEX_FOLDER_ID: ${{ secrets.YANDEX_FOLDER_ID }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
- name: Create cert
run: |
docker-compose run --rm certbot certonly --webroot --webroot-path=/var/www/html --email brainupproject@yandex.ru -d brainup.fun

0 comments on commit 03503d0

Please sign in to comment.