Skip to content

add workflow

add workflow #1

Workflow file for this run

name: CI
on:
push:
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
PIPENV_VENV_IN_PROJECT: 1
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
PYMONGOIM__MONGO_VERSION: 4.4
PYMONGOIM__OPERATING_SYSTEM: ubuntu
jobs:
docker:

Check failure on line 18 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 18, Col: 3): The workflow must contain at least one job with no dependencies.
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
registry: ebl.badw.de
username: ${{ secrets.EBL_REGISTRY_USERNAME }}
password: ${{ secrets.EBL_REGISTRY_PASSWORD }}
- id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: |
ebl.badw.de/mongosync:main
${{format('ebl.badw.de/mongosync:main.{0}', github.run_number)}}