update tag #5
@ -40,7 +40,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:
|
||||
@ -51,29 +51,29 @@ 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: Get bitwarden secrets
|
||||
uses: https://git.qlic.nl/actions/warden@8539a35095f1b6251e33ad8d34b0e6df06e1300e
|
||||
uses: https://git.qlic.nl/actions/warden@v1
|
||||
with:
|
||||
client-id: ${{ inputs.warden-client-id }}
|
||||
secret-id: ${{ inputs.warden-client-secret }}
|
||||
password: ${{ inputs.warden-password }}
|
||||
server: ${{ inputs.warden-server }}
|
||||
secrets: ${{ inputs.secrets }}
|
||||
|
||||
|
||||
- name: Create .env file from secret
|
||||
run: echo "$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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user