Skip to content

Commit

Permalink
Make workflow jobs depend on each other
Browse files Browse the repository at this point in the history
  • Loading branch information
iyannsch committed Jun 17, 2024
1 parent fd903bc commit 5c38b9c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ on:
- master

jobs:
build-and-push-base:
uses: ls1intum/.github/.github/workflows/build-and-push-docker-image.yml@main
with:
docker-file: images/base-ide/BaseDockerfile
image-name: ghcr.io/ls1intum/theia/base
docker-context: .
secrets: inherit

build-and-push:
needs: build-and-push-base
strategy:
matrix:
docker-context: ['.']
include:
- docker-file: images/base-ide/BaseDockerfile
image-name: ghcr.io/ls1intum/theia/base
- docker-file: images/java-17/ToolDockerfile
image-name: ghcr.io/ls1intum/theia/java-17
uses: ls1intum/.github/.github/workflows/build-and-push-docker-image.yml@main
Expand Down

0 comments on commit 5c38b9c

Please sign in to comment.