Skip to content

ci: mises à jour

ci: mises à jour #14

Workflow file for this run

name: Main pipeline
on:
#to begin you want to launch this job in main and develop
push:
workflow_run:
workflows:
- "test"
types:
- completed
jobs:
# define job to build and publish docker image
build-and-push-docker-image-nightly:

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

View workflow run for this annotation

GitHub Actions / Main pipeline

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
needs: test-backend
# run only when code is compiling and tests are passing
runs-on: ubuntu-22.04
env:
DOCKERHUB_TAG: ${{ github.ref_name }}
# steps to perform in job
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image and push backend
uses: docker/build-push-action@v3
with:
# relative path to the place where source code with Dockerfile is located
file: ./Dockerfile.api
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{secrets.DOCKERHUB_USERNAME}}/api:${{ env.DOCKERHUB_TAG }}
- name: Build image and push database
uses: docker/build-push-action@v3
with:
# relative path to the place where source code with Dockerfile is located
file: ./Dockerfile.db
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{secrets.DOCKERHUB_USERNAME}}/database:${{ env.DOCKERHUB_TAG }}
- name: Build image and push httpd
uses: docker/build-push-action@v3
with:
# relative path to the place where source code with Dockerfile is located
file: ./Dockerfile.http
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{secrets.DOCKERHUB_USERNAME}}/httpd:${{ env.DOCKERHUB_TAG }}