@@ -10,13 +10,14 @@ jobs:
1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Checkout
13- uses : actions/checkout@v3
13+ uses : actions/checkout@v4
1414
15- - name : Check if base image update available
15+ - name : Check if image needs updating
1616 id : image-update
1717 run : |
18- docker pull ubuntu:jammy
19- docker images --format '{{.ID}}' ubuntu:jammy > .github/docker-image-built-against
18+ docker pull alpine:3.18
19+ docker images --format '{{.ID}}' alpine:3.18 > .github/docker-image-built-against
20+ git ls-remote https://github.com/samhocevar/rinetd.git main > .github/docker-rinetd-built-against
2021 img_needs_updating=`git status --porcelain`
2122 set -x
2223 echo "needs-updating=`[[ $img_needs_updating ]] && echo true || echo false`" >>$GITHUB_OUTPUT
@@ -25,39 +26,38 @@ jobs:
2526 id : pkg-update
2627 run : |
2728 docker pull ghcr.io/digitallyrefined/docker-wireguard-tunnel
28- pkgs_to_update=`docker run --rm ghcr.io/digitallyrefined/docker-wireguard-tunnel bash -c ' \
29- apt update > /dev/null && \
30- apt -s -o Debug::NoLocking=true upgrade | { grep ^Inst || true; }'`
29+ pkgs_to_update=`docker run --rm ghcr.io/digitallyrefined/docker-wireguard-tunnel sh -c ' \
30+ apk upgrade --simulate --no-cache | { grep Upgrading || true; }'`
3131 set -x
3232 echo "needs-updating=`[[ $pkgs_to_update ]] && echo true || echo false`" >>$GITHUB_OUTPUT
3333
3434 - name : Set up QEMU
35- uses : docker/setup-qemu-action@v2
35+ uses : docker/setup-qemu-action@v3
3636 if : steps.image-update.outputs.needs-updating == 'true' || steps.pkg-update.outputs.needs-updating == 'true'
3737
3838 - name : Set up Docker Buildx
39- uses : docker/setup-buildx-action@15c905b16b06416d2086efa066dd8e3a35cc7f98
39+ uses : docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226
4040 with :
4141 driver-opts : ' image=moby/buildkit:v0.10.5'
4242 if : steps.image-update.outputs.needs-updating == 'true' || steps.pkg-update.outputs.needs-updating == 'true'
4343
4444 - name : Login to GitHub Container Registry
45- uses : docker/login-action@v2
45+ uses : docker/login-action@v3
4646 with :
4747 registry : ghcr.io
4848 username : ${{ secrets.GHCR_USERNAME }}
4949 password : ${{ secrets.GHCR_TOKEN }}
5050 if : steps.image-update.outputs.needs-updating == 'true' || steps.pkg-update.outputs.needs-updating == 'true'
5151
5252 - name : Build and push
53- uses : docker/build-push-action@v4
53+ uses : docker/build-push-action@v5
5454 with :
5555 context : .
5656 platforms : linux/amd64,linux/arm64,linux/arm/v7
5757 push : true
5858 tags : |
5959 ghcr.io/digitallyrefined/docker-wireguard-tunnel:latest
60- ghcr.io/digitallyrefined/docker-wireguard-tunnel:v2
60+ ghcr.io/digitallyrefined/docker-wireguard-tunnel:v3
6161 if : steps.image-update.outputs.needs-updating == 'true' || steps.pkg-update.outputs.needs-updating == 'true'
6262
6363 - name : Commit and push changes
0 commit comments