-
Notifications
You must be signed in to change notification settings - Fork 359
44 lines (39 loc) · 1.33 KB
/
docker_build_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: 'Docker Build Test'
# This test verifies that we can successfully build the same docker images that we release.
# Includes `cromwell`, `womtool`, `cromiam`, and `cromwell-drs-localizer`
# See chart_update_on_merge.yml for the actual release workflow.
run-name: ${{ github.actor }} Docker Build Test
on:
workflow_dispatch:
push:
merge_group:
permissions:
contents: read
jobs:
sbt-build:
name: sbt docker build
runs-on: ubuntu-latest
steps:
- name: Clone Cromwell
uses: actions/checkout@v2
with:
repository: broadinstitute/cromwell
token: ${{ secrets.BROADBOT_GITHUB_TOKEN }}
path: cromwell
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
# The following invocation should be as similar as possible to the one in chart_update_on_merge.yml
# To state the obvious: This test should not publish anything. It should simply verify that the build completes.
- name: Build Cromwell Docker
run: |
set -e
cd cromwell
sbt -Dproject.isSnapshot=false docker
# Rarely used but we really want it always working for emergencies
- name: Build Cromwell Debug Docker
run: |
set -e
cd cromwell
sbt -Dproject.isDebug=true docker