Skip to content

Update .gitignore

Update .gitignore #8

Workflow file for this run

name: Deploy Docker Image
on:
push:
branches:
- main
workflow_run:
workflows: [ "Run Tests" ]
branches: [ main ]
types:
- completed
jobs:
docker:

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

View workflow run for this annotation

GitHub Actions / Deploy Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/cd.yml (Line: 14, 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