diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 875bc25..3f6d90f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -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