Skip to content

Commit

Permalink
Explicit pull should no longer be needed with BuildKit
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Apr 9, 2021
1 parent b2e9d1a commit bc49c2c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
- name: Image Name
id: imagename
run: echo "::set-output name=name::ghcr.io/${GITHUB_REPOSITORY,,}/base:latest"
- name: Pull latest
run: docker pull ${{ steps.imagename.outputs.name }} || true
- name: Build base image
run: docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${{ steps.imagename.outputs.name }} --tag ${{ steps.imagename.outputs.name }} images/base
- name: Push base image
Expand All @@ -61,8 +59,6 @@ jobs:
- name: Image Name
id: imagename
run: echo "::set-output name=name::ghcr.io/${GITHUB_REPOSITORY,,}/base-${{ matrix.target }}:latest"
- name: Pull latest
run: docker pull ${{ steps.imagename.outputs.name }} || true
- name: Build target base image
run: docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --build-arg GH_REPO=${GITHUB_REPOSITORY,,} --cache-from ${{ steps.imagename.outputs.name }} --tag ${{ steps.imagename.outputs.name }} images/base-${{ matrix.target }}
- name: Push target base image
Expand Down Expand Up @@ -92,8 +88,6 @@ jobs:
run: |
IMG="ghcr.io/${GITHUB_REPOSITORY,,}/${{ matrix.target }}-${{ matrix.variant }}:latest"
echo "::set-output name=name::${IMG/ /-}"
- name: Pull latest
run: docker pull ${{ steps.imagename.outputs.name }} || true
- name: Build variant image
run: docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${{ steps.imagename.outputs.name }} --tag ${{ steps.imagename.outputs.name }} .
- name: Push variant image
Expand Down

0 comments on commit bc49c2c

Please sign in to comment.