Skip to content

Version 1.0

Version 1.0 #5

Workflow file for this run

name: CD
on:
pull_request:
branches: [ "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build Docker image
run: |
docker build -t vyacheslavshrot/spa_app_backend:latest -f DockerfileBackend .
docker build -t vyacheslavshrot/spa_app_celery:latest -f DockerfileCelery .
- name: Push Docker image to Docker Hub
run: |
docker push vyacheslavshrot/spa_app_backend:latest
docker push vyacheslavshrot/spa_app_celery:latest