Skip to content

Commit

Permalink
Test docker build caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ptr727 committed Apr 29, 2023
1 parent 328a216 commit e6eb21d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/BuildDockerPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,14 @@ jobs:
- name: Docker build and push
uses: docker/build-push-action@v4
with:
context: .
cache-from: type=registry,ref=docker.io/ptr727/plexcleaner:buildcache
cache-to: type=registry,ref=docker.io/ptr727/plexcleaner:buildcache,mode=max
file: ${{ matrix.file }}
push: ${{ (github.event_name != 'pull_request') }}
# TODO: How to test for secret not null and avoid "null= is not a valid secret"
secrets: ${{ matrix.secrets }}=${{ secrets[matrix.secrets] }}
tags: ${{ matrix.tags }}
context: .
platforms: ${{ matrix.platforms }}
build-args: |
LABEL_VERSION=${{ needs.version.outputs.SemVer2 }}
Expand Down
5 changes: 5 additions & 0 deletions Docker/Arch.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ RUN wget https://aka.ms/getvsdbgsh \
&& rm getvsdbgsh

# Install .NET and media processing tools
# https://archlinux.org/packages/community/x86_64/dotnet-sdk/
# https://archlinux.org/packages/extra/x86_64/ffmpeg/
# https://archlinux.org/packages/community/x86_64/mediainfo/
# https://archlinux.org/packages/community/x86_64/handbrake-cli/
# https://archlinux.org/packages/extra/x86_64/mkvtoolnix-cli/
RUN pacman --sync --noconfirm \
# https://bugs.archlinux.org/task/77662
boost-libs \
Expand Down

0 comments on commit e6eb21d

Please sign in to comment.