forked from LondheShubham153/devboard
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (21 loc) · 729 Bytes
/
Copy pathcd.yml
File metadata and controls
28 lines (21 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Goal: To deploy the built images from CI Steps once the CI Worklow is Succeeded
name: CD
on:
workflow_call:
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Code Checkout
uses: actions/checkout@v7
- name: Copy Example Env to main env
run: cp .env.example .env
- name: Docker Setup [Login]
uses: docker/login-action@v4
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Deploy the containers with Docker Compose
run: |
docker compose pull
docker compose up -d