Skip to content

Commit 4427edf

Browse files
authored
chore(build): Update container building (#13)
* chore(build): Update container builing Update Docker cache configuration to use registry instead of GHA. * Change BusyBox download to GitHub source Updated the BusyBox download source to use GitHub.
1 parent a744923 commit 4427edf

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
push: ${{ github.event_name != 'pull_request' }}
5555
tags: ${{ steps.meta.outputs.tags }}
5656
labels: ${{ steps.meta.outputs.labels }}
57-
cache-from: type=gha
58-
cache-to: type=gha,mode=max
57+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
58+
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
5959
env:
6060
DOCKER_BUILD_RECORD_RETENTION_DAYS: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && '0' || '7' }}
6161

Containerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ FROM alpine:3.13.2 AS builder
44

55
RUN apk add gcc musl-dev make perl
66

7-
RUN wget https://busybox.net/downloads/busybox-1.35.0.tar.bz2 \
8-
&& tar xf busybox-1.35.0.tar.bz2 \
9-
&& mv /busybox-1.35.0 /busybox
7+
RUN wget https://github.com/mirror/busybox/archive/refs/tags/1_35_0.tar.gz -O busybox.tar.gz \
8+
&& tar xf busybox.tar.gz \
9+
&& mv busybox-1_35_0 /busybox
1010

1111
WORKDIR /busybox
1212

0 commit comments

Comments
 (0)