chore: add ssh key #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy instance | |
on: | |
push: | |
branches: | |
- kamal | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
SECRET_MASTER_KEY: ${{ secrets.SECRET_MASTER_KEY }} | |
SECRET_JWT_SECRET: ${{ secrets.SECRET_JWT_SECRET }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3.0 | |
bundler-cache: true | |
- run: gem install kamal | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- uses: docker/setup-buildx-action@v3 | |
- run: kamal lock release | |
- run: kamal deploy |