update tag (#5)

Reviewed-on: #5
Reviewed-by: Jamie Schouten <jamie@qlic.nl>
Co-authored-by: Johan Rooijakkers <johan@qlic.nl>
Co-committed-by: Johan Rooijakkers <johan@qlic.nl>
This commit is contained in:
Johan Rooijakkers 2025-02-27 14:27:37 +00:00 committed by Jamie Schouten
parent 21097f273d
commit 650859eab2

View File

@ -37,7 +37,7 @@ on:
description: "One or more secret Ids to retrieve and the corresponding Gitea environment variable name to set"
required: true
jobs:
jobs:
deploy:
runs-on: ubuntu-24.04
container:
@ -48,30 +48,30 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup SSH agent
uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387
with:
ssh-private-key: ${{ secrets.ssh-private-key }}
- name: Bitwarden
uses: https://git.qlic.nl/actions/warden@e0a78ea1c3e894453f1d67de0cfe554256025d0f
- name: Get bitwarden secrets
uses: https://git.qlic.nl/actions/warden@v1
with:
email: ${{ inputs.warden-email }}
password: ${{ inputs.warden-password }}
client-id: ${{ inputs.warden-client-id }}
client-secret: ${{ inputs.warden-client-secret }}
secrets: ${{ inputs.secrets }}
- name: Create .env file from secret
run: |
echo "$DOT_ENV" > .kamal/secrets.${{ inputs.environment }}
- name: Append kamal registry password
run: echo "KAMAL_REGISTRY_PASSWORD=${{ inputs.password }}" >> .kamal/secrets.${{ inputs.environment }}
- name: Boot accessories
run: kamal accessory reboot all -d ${{ inputs.environment }}
- name: Deploy
run: kamal deploy -d ${{ inputs.environment }}