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"
|
description: "One or more secret Ids to retrieve and the corresponding Gitea environment variable name to set"
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
container:
|
container:
|
||||||
@ -51,29 +51,29 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup SSH agent
|
- name: Setup SSH agent
|
||||||
uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387
|
uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.ssh-private-key }}
|
ssh-private-key: ${{ secrets.ssh-private-key }}
|
||||||
|
|
||||||
- name: Get bitwarden secrets
|
- name: Get bitwarden secrets
|
||||||
uses: https://git.qlic.nl/actions/warden@8539a35095f1b6251e33ad8d34b0e6df06e1300e
|
uses: https://git.qlic.nl/actions/warden@v1
|
||||||
with:
|
with:
|
||||||
client-id: ${{ inputs.warden-client-id }}
|
client-id: ${{ inputs.warden-client-id }}
|
||||||
secret-id: ${{ inputs.warden-client-secret }}
|
secret-id: ${{ inputs.warden-client-secret }}
|
||||||
password: ${{ inputs.warden-password }}
|
password: ${{ inputs.warden-password }}
|
||||||
server: ${{ inputs.warden-server }}
|
server: ${{ inputs.warden-server }}
|
||||||
secrets: ${{ inputs.secrets }}
|
secrets: ${{ inputs.secrets }}
|
||||||
|
|
||||||
- name: Create .env file from secret
|
- name: Create .env file from secret
|
||||||
run: echo "$ENV" > .kamal/secrets.${{ inputs.environment }}
|
run: echo "$ENV" > .kamal/secrets.${{ inputs.environment }}
|
||||||
|
|
||||||
- name: Append kamal registry password
|
- name: Append kamal registry password
|
||||||
run: echo "KAMAL_REGISTRY_PASSWORD=${{ inputs.password }}" >> .kamal/secrets.${{ inputs.environment }}
|
run: echo "KAMAL_REGISTRY_PASSWORD=${{ inputs.password }}" >> .kamal/secrets.${{ inputs.environment }}
|
||||||
|
|
||||||
- name: Boot accessories
|
- name: Boot accessories
|
||||||
run: kamal accessory reboot all -d ${{ inputs.environment }}
|
run: kamal accessory reboot all -d ${{ inputs.environment }}
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: kamal deploy -d ${{ inputs.environment }}
|
run: kamal deploy -d ${{ inputs.environment }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user