Skip to content

chore(deps): update actions/checkout action to v4 (#101) #37

chore(deps): update actions/checkout action to v4 (#101)

chore(deps): update actions/checkout action to v4 (#101) #37

Workflow file for this run

name: Docker Compose Push
on:
push:
branches: [ "main" ]
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create dummy env-prod
run: mv ./.env.prod.sample ./.env.prod
- name: Build the Docker image
run: docker-compose build
- name: Run django tests in docker
run: docker-compose run web python manage.py test
- name: Log in to Docker Hub
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push image
run: docker-compose push