Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Nov 12, 2024
1 parent 76c0ec1 commit dc0e6fd
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build and deploy

concurrency:
group: production
cancel-in-progress: true

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest

env:
DOCKER_BUILDKIT: 1
KAMAL_REGISTRY_PASSWORD: ${{ secrets.KAMAL_REGISTRY_PASSWORD }}
KAMAL_REGISTRY_USERNAME: megasanjay

name: Build and Deploy Job
steps:
# - name: checkout
# uses: actions/checkout@v
# with:
# submodules: true
# lfs: false

# - name: Setup kamal secrets file
# run: |
# mkdir -p .kamal
# echo "${{ secrets.KAMAL_REGISTRY_PASSWORD }}" > .kamal/secrets
# echo "${{ secrets.SV }}" > .kamal/secrets
# chmod 600 .kamal/secrets

- 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 redeploy

0 comments on commit dc0e6fd

Please sign in to comment.