diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8669dd5..5848d95 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 # SPDX-ArtifactOfProjectHomePage: https://github.com/vegardit/docker-graalvm-maven # -# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions name: Build on: @@ -134,6 +134,7 @@ jobs: - name: Test ${{ env.DOCKER_IMAGE_REPO }}:${{ matrix.GRAALVM_VERSION }}-java${{ matrix.GRAALVM_JAVA_VERSION }} via Maven env: RUN_IN_DOCKER_IMAGE: ${{ env.DOCKER_IMAGE_REPO }}:${{ matrix.GRAALVM_VERSION }}-java${{ matrix.GRAALVM_JAVA_VERSION }} + if: ${{ !env.ACT }} # https://github.com/nektos/act#skipping-steps run: | set -eux bash example/tools/run-in-docker.sh mvn clean package diff --git a/image/Dockerfile b/image/Dockerfile index 8f4508d..f986aa7 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -1,5 +1,6 @@ #syntax=docker/dockerfile:1.4 -# see https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md +# see https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md#user-content-syntax +# see https://docs.docker.com/build/dockerfile/frontend/ # see https://docs.docker.com/engine/reference/builder/#syntax # # SPDX-FileCopyrightText: © Vegard IT GmbH (https://vegardit.com) @@ -16,7 +17,7 @@ LABEL maintainer="Vegard IT GmbH (vegardit.com)" USER root -SHELL ["/bin/bash", "-c"] +SHELL ["/bin/bash", "-euo", "pipefail", "-c"] ARG DEBIAN_FRONTEND=noninteractive ARG LC_ALL=C @@ -25,7 +26,6 @@ ARG BASE_LAYER_CACHE_KEY RUN --mount=type=bind,source=.shared,target=/mnt/shared <&1 | sed -E -n 's/.* version "([^.-]*).*"/\1/p') @@ -138,7 +140,7 @@ RUN <