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
name: Deploy Aidbox with AU Core profile | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate .env and restart | |
uses: appleboy/ssh-action@v0.1.7 | |
env: | |
AIDBOX_LICENSE: ${{secrets.AIDBOX_LICENSE}} | |
CERTBOT_EMAIL: ${{secrets.CERTBOT_EMAIL}} | |
with: | |
host: ${{secrets.REMOTE_HOST}} | |
username: ${{secrets.REMOTE_USER}} | |
key: ${{secrets.PRIVATE_KEY}} | |
envs: > | |
AIDBOX_LICENSE,CERTBOT_EMAIL | |
script_stop: true | |
script: | | |
cd ~/au-core-aidbox | |
echo "AIDBOX_LICENSE=$AIDBOX_LICENSE" > .env | |
echo "BOX_FEATURES_FTR_PULL_ENABLE=true" >> .env | |
echo "AIDBOX_ZEN_DEV_MODE=disable" >> .env | |
docker compose pull -q | |
docker compose stop | |
docker compose up -d |