Skip to content

Commit

Permalink
Update to Alpine 3.21
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Twigg <[email protected]>
  • Loading branch information
neilalexander committed Dec 6, 2024
1 parent 76fd30e commit ab2bb8b
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:
TAG=${{ github.ref_name }}
echo "TAG=${TAG#v}" >> "$GITHUB_OUTPUT"
- name: Alpine 3.20
- name: Alpine 3.21
uses: docker/build-push-action@v6
with:
context: ./2.10.x/alpine3.20/
context: ./2.10.x/alpine3.21/
platforms: ${{ env.LINUX_ARCHS }}
push: true
tags: ${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-alpine3.20
tags: ${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-alpine3.21
provenance: mode=max

- name: Scratch
Expand All @@ -58,7 +58,7 @@ jobs:
tags: ${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-scratch
provenance: mode=max
build-args: |
BASE_IMAGE=${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-alpine3.20
BASE_IMAGE=${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-alpine3.21
windows-2019-2_10:
name: Build Windows (2.10.x)
Expand Down Expand Up @@ -136,13 +136,13 @@ jobs:
TAG=${{ github.ref_name }}
echo "TAG=${TAG#v}" >> "$GITHUB_OUTPUT"
- name: Alpine 3.20
- name: Alpine 3.21
uses: docker/build-push-action@v6
with:
context: ./2.11.x/alpine3.20/
context: ./2.11.x/alpine3.21/
platforms: ${{ env.LINUX_ARCHS }}
push: true
tags: ${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-alpine3.20
tags: ${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-alpine3.21
provenance: mode=max

- name: Scratch
Expand All @@ -155,7 +155,7 @@ jobs:
tags: ${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-scratch
provenance: mode=max
build-args: |
BASE_IMAGE=${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-alpine3.20
BASE_IMAGE=${{ env.IMAGE_NAME }}:${{ steps.ref.outputs.TAG }}-alpine3.21
windows-2019-2_11:
name: Build Windows (2.11.x)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.20
FROM alpine:3.21

ENV NATS_SERVER 2.10.23-RC.10

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion 2.10.x/scratch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM scratch
ENV PATH="$PATH:/"

COPY --from=nats:2.10.23-RC.10-alpine3.20 /usr/local/bin/nats-server /nats-server
COPY --from=nats:2.10.23-RC.10-alpine3.21 /usr/local/bin/nats-server /nats-server
COPY nats-server.conf /nats-server.conf

EXPOSE 4222 8222 6222
Expand Down
2 changes: 1 addition & 1 deletion 2.10.x/scratch/Dockerfile.preview
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=nats:2.10.23-RC.10-alpine3.20
ARG BASE_IMAGE=nats:2.10.23-RC.10-alpine3.21
FROM $BASE_IMAGE AS base

FROM scratch
Expand Down
4 changes: 2 additions & 2 deletions 2.10.x/tests/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -ex
ver=(NATS_SERVER 2.10.23-RC.10)

(
cd "../alpine3.20"
docker build --tag nats:${ver[1]}-alpine3.20 .
cd "../alpine3.21"
docker build --tag nats:${ver[1]}-alpine3.21 .
)

(
Expand Down
2 changes: 1 addition & 1 deletion 2.10.x/tests/run-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex
ver=(NATS_SERVER 2.10.23-RC.10)

images=(
"nats:${ver[1]}-alpine3.20"
"nats:${ver[1]}-alpine3.21"
"nats:${ver[1]}-scratch"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.20
FROM alpine:3.21

ENV NATS_SERVER 2.11.0-preview.2

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion 2.11.x/scratch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM scratch
ENV PATH="$PATH:/"

COPY --from=nats:2.11.0-preview.2-alpine3.20 /usr/local/bin/nats-server /nats-server
COPY --from=nats:2.11.0-preview.2-alpine3.21 /usr/local/bin/nats-server /nats-server
COPY nats-server.conf /nats-server.conf

EXPOSE 4222 8222 6222
Expand Down
2 changes: 1 addition & 1 deletion 2.11.x/scratch/Dockerfile.preview
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=nats:2.11.0-preview.2-alpine3.20
ARG BASE_IMAGE=nats:2.11.0-preview.2-alpine3.21
FROM $BASE_IMAGE AS base

FROM scratch
Expand Down
4 changes: 2 additions & 2 deletions 2.11.x/tests/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -ex
ver=(NATS_SERVER 2.11.0-preview.2)

(
cd "../alpine3.20"
docker build --tag nats:${ver[1]}-alpine3.20 .
cd "../alpine3.21"
docker build --tag nats:${ver[1]}-alpine3.21 .
)

(
Expand Down
2 changes: 1 addition & 1 deletion 2.11.x/tests/run-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex
ver=(NATS_SERVER 2.11.0-preview.2)

images=(
"nats:${ver[1]}-alpine3.20"
"nats:${ver[1]}-alpine3.21"
"nats:${ver[1]}-scratch"
)

Expand Down

0 comments on commit ab2bb8b

Please sign in to comment.