Skip to content

Introduce tests & GitHub Actions (#18) #1

Introduce tests & GitHub Actions (#18)

Introduce tests & GitHub Actions (#18) #1

Workflow file for this run

name: CD
on:
push:
branches:
- main
jobs:
docker:

Check failure on line 9 in .github/workflows/cd.yml

View workflow run for this annotation

GitHub Actions / CD

Invalid workflow file

The workflow is not valid. .github/workflows/cd.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
name: Build and Push Docker Images
runs-on: ubuntu-latest
needs: [ci] # Docker image should be built after CI jobs are successful.
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push Docker images using Docker Compose
run: |
docker-compose build
docker-compose push