File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,13 +16,14 @@ jobs:
1616 - name : Build the Docker image
1717 env :
1818 # @see https://docs.docker.com/develop/develop-images/build_enhancements/
19- COMPOSE_DOCKER_CLI_BUILD : " 1"
2019 DOCKER_BUILDKIT : " 1"
2120 run : |
2221 docker build . \
23- --cache-from macbre/index-digest:latest \
24- --build-arg COMMIT_SHA=$(git rev-parse --short HEAD) \
22+ --cache-from ghcr.io/macbre/index-digest:latest \
23+ --build-arg BUILDKIT_INLINE_CACHE=1 \
24+ --build-arg GITHUB_SHA=$(git rev-parse --short HEAD) \
2525 --tag ${{ github.repository }}
26+
2627 docker images
2728
2829 echo "## Image labels:"
Original file line number Diff line number Diff line change @@ -16,13 +16,8 @@ RUN apk upgrade \
1616 && rm -rf /root/.cache \
1717 && apk del build-deps
1818
19- ARG COMMIT_SHA="dev"
20- ENV COMMIT_SHA ${COMMIT_SHA}
21-
22- # label the image with branch name and commit hash
23- LABEL maintainer=
"[email protected] " 24- LABEL org.opencontainers.image.source="https://github.com/macbre/index-digest"
25- LABEL org.opencontainers.image.revision="${COMMIT_SHA}"
19+ ARG GITHUB_SHA="dev"
20+ ENV COMMIT_SHA ${GITHUB_SHA}
2621
2722# install the remaining files
2823ADD . .
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments