Skip to content

Commit

Permalink
Pull images and use a registry as cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyb3r-Jak3 committed Jul 15, 2023
1 parent 54ad9c9 commit 54e44af
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,22 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Build ${{ matrix.target }}
uses: docker/bake-action@v2
uses: docker/bake-action@v3
with:
files: |
${{ steps.meta.outputs.bake-file }}
./docker-bake.hcl
targets: ${{ matrix.target }}-release
push: ${{ github.ref == 'refs/heads/main' }}
pull: true
set: |
*.cache-from=type=gha,scope=buildx-${{ matrix.target }}
*.cache-to=type=gha,mode=max,scope=buildx-${{ matrix.target }}
*.cache-from=ghcr.io/cyb3r-jak3/alpine-pypy-cache:${{ matrix.target }}
*.cache-to=ghcr.io/cyb3r-jak3/alpine-pypy-cache:${{ matrix.target }}
# cache-to: type=gha,mode=max,scope=buildx-alpine-pypy-workflow-builder:${{ env.ALPINE_VERSION }}
# cache-from: type=gha,scope=buildx-alpine-pypy-workflow-builder:${{ env.ALPINE_VERSION }}

Update-DockerHub:
runs-on: ubuntu-latest
name: Update DockerHub Descriptions
Expand Down
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ target "python-2_7" {
platforms = [
"linux/amd64",
"linux/arm64",
"linux/386"
// "linux/386"
]
}

Expand Down
2 changes: 1 addition & 1 deletion export/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN set -ex; \
pypy --version

# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 23.2
ENV PYTHON_PIP_VERSION 20.3.4
ARG PIP_URL=https://bootstrap.pypa.io/get-pip.py
RUN set -ex; \
\
Expand Down

0 comments on commit 54e44af

Please sign in to comment.