Skip to content

Update build.yml to use reusable workflows #270

Update build.yml to use reusable workflows

Update build.yml to use reusable workflows #270

Workflow file for this run

name: Build Docker Images
on:
pull_request:
push:
branches:
- main
- release/*
tags: '*'
release:
types:
- created
workflow_run:
workflows: ["Go Test"]
types:
- completed
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./HadesAPI/Dockerfile
image: ghcr.io/ls1intum/hades/hades-api
- dockerfile: ./HadesScheduler/Dockerfile
image: ghcr.io/ls1intum/hades/hades-scheduler
- dockerfile: ./HadesCloneContainer/Dockerfile
image: ghcr.io/ls1intum/hades/hades-clone-container
uses: ls1intum/.github/.github/workflows/build-and-push-docker-image.yml@main
with:
docker-image: ${{ matrix.image }}

Check failure on line 33 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build Docker Images

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 33, Col: 21): Invalid input, docker-image is not defined in the referenced workflow.
docker-file: ${{ matrix.dockerfile }}