Skip to content

Commit

Permalink
Create cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Village-GG-Water authored Nov 8, 2024
1 parent e522ed5 commit aa03808
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CD

on:
push:
branches:
- main
workflow_run:
workflows: ["CI"]
types:
- completed

jobs:
deploy:
if: ${{ github.event_name == 'push' && github.actor != 'github-actions[bot]' }}
runs-on: 'self-hosted'
steps:
- name: Check out code
uses: actions/[email protected]

- name: Stop running service
run: docker compose down fe --rmi local

- name: Start service
run: docker compose up be -d

0 comments on commit aa03808

Please sign in to comment.