File tree Expand file tree Collapse file tree
.github/actions/docker-build Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ inputs:
1313 required : true
1414 base :
1515 description : " Base docker image to build on top of"
16- required : true
17- default : " devitocodes/bases:cpu-gcc"
16+ default : " "
1817
1918outputs :
2019 unique :
@@ -35,20 +34,12 @@ runs:
3534 - id : dockerbuild
3635 name : " Build docker container"
3736 shell : bash
37+ env :
38+ BASE : ${{ inputs.base }}
3839 run : |
3940 docker build \
4041 --pull \
4142 --file ${{ inputs.file }} \
4243 --tag ${{ inputs.tag }}_${{ steps.uniquetag.outputs.unique }} \
43- --build-arg base=${{ inputs.base } } \
44+ ${BASE:+ --build-arg base=$BASE } \
4445 .
45-
46- # Do we need to be more specific?
47- # ~ docker buildx build . \
48- # ~ --builder "${RUNNER_NAME// /_}" \
49- # ~ --load \
50- # ~ --label ci-run="$GITHUB_RUN_ID" \
51- # ~ --rm --pull \
52- # ~ --file docker/Dockerfile.devito \
53- # ~ --tag "${DOCKER_IMAGE}" \
54- # ~ --build-arg base="${{ matrix.base }}"
Original file line number Diff line number Diff line change 33##############################################################
44
55# Base image with compilers
6- # Update default in .github/actions/docker-build if this value ever changes
76ARG base=devitocodes/bases:cpu-gcc
87
98FROM $base AS builder
You can’t perform that action at this time.
0 commit comments