Auto Merge of PR #19 - pg-backweb-deploy

Merged by Trez.One
This commit is contained in:
2025-01-19 20:56:32 -05:00
@@ -201,13 +201,25 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: main ref: main
- name: Gotify Notification # - name: Gotify Notification
uses: eikendev/gotify-action@master # uses: eikendev/gotify-action@master
# with:
# gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
# gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
# notification_title: 'Ansible Config Deployment @ Rinoa'
# notification_message: 'Deployment completed successfully.'
- name: Cache Vault install
id: cache-vault
uses: actions/cache@v4
with: with:
gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}' path: /opt/hostedtoolcache/vault/1.18.0/x64
gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}' key: vault-${{ runner.os }}-1.18.0
notification_title: 'Ansible Config Deployment @ Rinoa' - name: Install Vault
notification_message: 'Deployment completed successfully.' uses: supplypike/setup-bin@v4
with:
uri: 'https://releases.hashicorp.com/vault/1.18.0/vault_1.18.0_linux_amd64.zip'
name: 'vault'
version: '1.18.0'
- name: Generate .env file for deployment - name: Generate .env file for deployment
run: | run: |
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
@@ -222,7 +234,7 @@ jobs:
- name: Gotify Notification - name: Gotify Notification
uses: eikendev/gotify-action@master uses: eikendev/gotify-action@master
with: with:
gotify_api_base: '${{ secrets.gotify_api_base }}' gotify_api_base: '${{ secrets.RINOA_GITEA_PUBLIC_SSH_KEY }}'
gotify_app_token: '${{ secrets.gotify_app_token }}' gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
notification_title: 'Docker ComposeDeployment @ Rinoa' notification_title: 'Docker Compose Deployment @ Rinoa'
notification_message: 'Deployment completed successfully.' notification_message: 'Deployment completed successfully.'