Skip to content

Commit

Permalink
test cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Oct 25, 2024
1 parent b676827 commit 48586b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 50 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/01.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,24 @@ on:
workflow_dispatch:
push:
branches:
- dl/kamal-2-test
- dl/kamal-2-test # Change to 'main' branch

# Trigger deployment only after the CI workflow completes successfully
workflow_run:
workflows: ["CI"] # Ensure this matches the name of your CI workflow
types:
- completed

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: staging
environment: production # Adjust to 'production'
timeout-minutes: 20

# Only run if CI was successful
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch'

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -55,4 +64,4 @@ jobs:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
DOCKER_BUILDKIT: 1
run: |
./bin/kamal deploy
./bin/kamal deploy
47 changes: 0 additions & 47 deletions .github/workflows/rollback.yml

This file was deleted.

0 comments on commit 48586b2

Please sign in to comment.