|
|
|
@ -11,8 +11,8 @@ on:
|
|
|
|
|
- main
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
# DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }}
|
|
|
|
|
DEPLOY: all
|
|
|
|
|
DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }}
|
|
|
|
|
# DEPLOY: all
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
ansible-playbooks:
|
|
|
|
@ -78,8 +78,4 @@ jobs:
|
|
|
|
|
INFISICAL_MONGO_PASSWORD: ${{ secrets.INFISICAL_MONGO_PASSWORD }}
|
|
|
|
|
INFISICAL_TOKEN: ${{ secrets.INFISICAL_TOKEN }}
|
|
|
|
|
INFISICAL_URL: https://secrets.koval.net
|
|
|
|
|
run: |
|
|
|
|
|
echo $INFISICAL_URL
|
|
|
|
|
echo $INFISICAL_TOKEN | base64
|
|
|
|
|
sed -i "s/site_url=url/site_url=url, debug=True/g" /root/.ansible/collections/ansible_collections/infisical/vault/plugins/lookup/read_secrets.py
|
|
|
|
|
ansible-playbook --inventory ./inventory ./infra/photos/0003_immich_playbook.yaml -vvvvv
|
|
|
|
|
run: ansible-playbook --inventory ./inventory ${{ steps.playbooks.outputs.to_run }} -vv
|
|
|
|
|