chore(deps): update authelia/authelia docker tag to v4.38.9 (#217) #182
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" | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
terraform: | |
name: Terraform | |
runs-on: ubuntu-latest | |
environment: production | |
defaults: | |
run: | |
working-directory: infra | |
steps: | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} | |
- name: Terraform Init | |
id: init | |
run: terraform init | |
working-directory: infra | |
- name: Terraform Apply | |
run: terraform apply -auto-approve -input=false | |
ansible: | |
name: Ansible | |
needs: terraform | |
runs-on: ubuntu-latest | |
environment: production | |
defaults: | |
run: | |
working-directory: software | |
steps: | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | |
- name: Cache known-hosts | |
uses: actions/cache@v4 | |
with: | |
path: ~/.ssh/known_hosts | |
key: known-hosts | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.ANSIBLE_SSH_KEY }} | |
known_hosts: unnecessary | |
config: | | |
Host * | |
StrictHostKeyChecking=accept-new | |
- name: Get Dependencies from Ansible Galaxy | |
run: ansible-galaxy install -r requirements.yml | |
- name: Configure Server with Ansible | |
run: ansible-playbook site.yml --extra-vars "base_domain=pascal.build" | |
env: | |
ANSIBLE_FORCE_COLOR: 1 | |
ANSIBLE_ASYNC_DIR: /tmp/.ansible_async | |
AUTHELIA_JWT_SECRET: ${{ secrets.AUTHELIA_JWT_SECRET }} | |
AUTHELIA_SESSION_SECRET: ${{ secrets.AUTHELIA_SESSION_SECRET }} | |
AUTHELIA_POSTGRES_PASSWORD: ${{ secrets.AUTHELIA_POSTGRES_PASSWORD }} | |
AUTHELIA_STORAGE_ENCRYPTION_KEY: ${{ secrets.AUTHELIA_STORAGE_ENCRYPTION_KEY }} | |
AUTHELIA_LDAP_PASSWORD: ${{ secrets.AUTHELIA_LDAP_PASSWORD }} | |
AUTHELIA_NOTIFIER_SMTP_PASSWORD: ${{ secrets.AUTHELIA_NOTIFIER_SMTP_PASSWORD }} | |
LLDAP_ADMIN_PASSWORD: ${{ secrets.LLDAP_ADMIN_PASSWORD }} | |
LLDAP_JWT_SECRET: ${{ secrets.LLDAP_JWT_SECRET }} | |
BORG_BACKUP_ENCRYPTION_PASS: ${{ secrets.BORG_BACKUP_ENCRYPTION_PASS }} | |
BORG_BACKUP_REPOSITORY: ${{ secrets.BORG_BACKUP_REPOSITORY }} | |
BORG_BACKUP_FINGERPRINT: ${{ secrets.BORG_BACKUP_FINGERPRINT }} | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
SSH_PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }} |