feature/update (#4)

Reviewed-on: #4
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:26:15 +00:00 committed by Jamie Schouten
parent 53574763a4
commit 21097f273d

View File

@ -4,9 +4,6 @@ on:
ssh-private-key:
required: true
type: string
env:
required: true
type: string
inputs:
image:
required: false
@ -57,17 +54,18 @@ jobs:
with:
ssh-private-key: ${{ secrets.ssh-private-key }}
- name: Get bitwarden secrets
uses: https://git.qlic.nl/actions/warden@8539a35095f1b6251e33ad8d34b0e6df06e1300e
- name: Bitwarden
uses: https://git.qlic.nl/actions/warden@e0a78ea1c3e894453f1d67de0cfe554256025d0f
with:
client-id: ${{ inputs.warden-client-id }}
secret-id: ${{ inputs.warden-client-secret }}
email: ${{ inputs.warden-email }}
password: ${{ inputs.warden-password }}
server: ${{ inputs.warden-server }}
client-id: ${{ inputs.warden-client-id }}
client-secret: ${{ inputs.warden-client-secret }}
secrets: ${{ inputs.secrets }}
- name: Create .env file from secret
run: echo "$ENV" > .kamal/secrets.${{ inputs.environment }}
run: |
echo "$DOT_ENV" > .kamal/secrets.${{ inputs.environment }}
- name: Append kamal registry password
run: echo "KAMAL_REGISTRY_PASSWORD=${{ inputs.password }}" >> .kamal/secrets.${{ inputs.environment }}