-
Notifications
You must be signed in to change notification settings - Fork 176
31 lines (28 loc) · 1.03 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: VaultwardenOnHeroku_Deploy
on:
workflow_dispatch:
env:
AUTOBUS_ENABLE: 1
CREATE_APP_NAME: ${{ secrets.HEROKU_APP_NAME }}
DUO_ENABLE: 1
GIT_HASH: main
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
USE_PSQL: 0
HEROKU_VERIFIED: 1
OFFSITE_HEROKU_DB: ${{ secrets.OFFSITE_HEROKU_DB }}
HEROKU_CREATE_OPTIONS: ${{ secrets.HEROKU_CREATE_OPTIONS }}
jobs:
create_and_deploy_app:
name: Create Vaultwarden app on Heroku, build, and deploy.
runs-on: ubuntu-latest
steps:
- uses: docker-practice/actions-setup-docker@master
with:
docker_channel: stable
# this value please see https://github.com/AkihiroSuda/moby-snapshot/releases
- uses: actions/checkout@v2
with:
fetch-depth: 1
- run: curl https://cli-assets.heroku.com/install.sh | sh
- run: sudo apt update && sudo apt install jq openssl -y
- run: bash vaultwarden_heroku.sh -a $CREATE_APP_NAME -d $DUO_ENABLE -g $GIT_HASH -p $USE_PSQL -v $HEROKU_VERIFIED -u ${OFFSITE_HEROKU_DB:-' '} -b $AUTOBUS_ENABLE -t deploy