Files
SkillHub/.github/workflows/deploy.yml
T
2024-04-01 00:06:23 +03:00

24 lines
572 B
YAML

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