[feat] Added properly CI/CD

This commit is contained in:
ITQ
2024-04-01 00:06:23 +03:00
parent bf715ceb02
commit bc5d31e64a
3 changed files with 103 additions and 17 deletions
+23
View File
@@ -0,0 +1,23 @@
name: Deployment
on:
workflow_run:
workflows: ["Django CI/CD", "Frontend CI/CD"]
types:
- completed
jobs:
deploy:
runs-on: self-hosted
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Pull Docker images and start containers
run: docker-compose up -d