Skip to content

Commit

Permalink
Merge pull request #58 from WyriHaximusNet/use-buildkit
Browse files Browse the repository at this point in the history
Use buildkit to improve performance of image (building)
  • Loading branch information
WyriHaximus authored Jan 23, 2020
2 parents f1570ec + 03c2242 commit 2ffb119
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Continuous Integration
env:
DOCKER_IMAGE: wyrihaximusnet/php
DOCKER_BUILDKIT: 1
on:
push:
branches:
Expand Down Expand Up @@ -36,7 +37,7 @@ jobs:
if: matrix.type == 'zts'
- run: ./build-php.sh cli nts ${{ matrix.php }} ${{ matrix.alpine }}
if: matrix.type == 'nts'
- run: cat ./docker-image/build-${{ matrix.type }}.tags | xargs -I % docker inspect --format='%={{.Id}}:{{index .ContainerConfig.Env 7}}' %
- run: cat ./docker-image/build-${{ matrix.type }}.tags | xargs -I % docker inspect --format='%={{.Id}}:{{index .Config.Env 7}}' %
- run: docker save "${DOCKER_IMAGE}" -o ./docker-image/docker_image-${{ matrix.type }}.tar
- run: docker images
- uses: actions/upload-artifact@master
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-nts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:experimental
FROM php:7.4-cli-alpine3.11 AS build-uv
RUN apk update && \
apk add --no-cache $PHPIZE_DEPS git libuv-dev && \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-zts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:experimental
FROM php:7.4-zts-alpine3.11 AS build-parallel
RUN apk update && \
apk add --no-cache $PHPIZE_DEPS git
Expand Down

0 comments on commit 2ffb119

Please sign in to comment.