Skip to content

Workflow file for this run

name: Onyxia API CI
on:
push:
branches:
- "**"
paths-ignore:
- 'docs/**'
tags:
- "*"
pull_request:
paths-ignore:
- 'docs/**'
jobs:
docker:

Check failure on line 17 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Onyxia API CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 17, Col: 3): The workflow must contain at least one job with no dependencies.
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker meta
id: docker_meta
uses: crazy-max/[email protected]
with:
images: estragonthecat/onyxia-api
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: onyxia-api
platforms: linux/amd64
file: onyxia-api/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ steps.docker_meta.outputs.tags }}
${{ github.ref == 'refs/heads/main' && 'estragonthecat/onyxia-api:latest' || '' }}
labels: ${{ steps.docker_meta.outputs.labels }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}