Skip to content

Commit

Permalink
Merge pull request #252 from loftwah/dl/kamal-lock
Browse files Browse the repository at this point in the history
make gooder
  • Loading branch information
loftwah authored Dec 10, 2024
2 parents f589d5c + 85ddf72 commit 5752a08
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/kamal-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ inputs:
runs:
using: composite
steps:
- name: Release Kamal Lock
shell: bash
env:
KAMAL_HOST: ${{ inputs.kamal-host }}
KAMAL_REGISTRY_USERNAME: ${{ inputs.kamal-registry-username }}
KAMAL_REGISTRY_PASSWORD: ${{ inputs.kamal-registry-password }}
SECRET_KEY_BASE: ${{ inputs.secret-key-base }}
AXIOM_API_KEY: ${{ inputs.axiom-api-key }}
DO_TOKEN: ${{ inputs.do-token }}
SPACES_REGION: ${{ inputs.spaces-region }}
SPACES_BUCKET_NAME: ${{ inputs.spaces-bucket-name }}
SPACES_BUCKET_CONTENT: ${{ inputs.spaces-bucket-content }}
SPACES_ACCESS_KEY_ID: ${{ inputs.spaces-access-key-id }}
SPACES_SECRET_ACCESS_KEY: ${{ inputs.spaces-secret-access-key }}
RAILS_MASTER_KEY: ${{ inputs.rails-master-key }}
DOCKER_BUILDKIT: 1
run: |
./bin/kamal lock release --destination=${{ inputs.environment }} || true
- name: Kamal Deploy
shell: bash
env:
Expand All @@ -66,5 +85,19 @@ runs:
- name: Kamal release on cancel
shell: bash
if: ${{ cancelled() }}
env:
KAMAL_HOST: ${{ inputs.kamal-host }}
KAMAL_REGISTRY_USERNAME: ${{ inputs.kamal-registry-username }}
KAMAL_REGISTRY_PASSWORD: ${{ inputs.kamal-registry-password }}
SECRET_KEY_BASE: ${{ inputs.secret-key-base }}
AXIOM_API_KEY: ${{ inputs.axiom-api-key }}
DO_TOKEN: ${{ inputs.do-token }}
SPACES_REGION: ${{ inputs.spaces-region }}
SPACES_BUCKET_NAME: ${{ inputs.spaces-bucket-name }}
SPACES_BUCKET_CONTENT: ${{ inputs.spaces-bucket-content }}
SPACES_ACCESS_KEY_ID: ${{ inputs.spaces-access-key-id }}
SPACES_SECRET_ACCESS_KEY: ${{ inputs.spaces-secret-access-key }}
RAILS_MASTER_KEY: ${{ inputs.rails-master-key }}
DOCKER_BUILDKIT: 1
run: |
./bin/kamal lock release --destination=${{ inputs.environment }}

0 comments on commit 5752a08

Please sign in to comment.