Skip to content

Commit

Permalink
added golang 1.23 and latest
Browse files Browse the repository at this point in the history
  • Loading branch information
gOOvER committed Nov 16, 2024
1 parent bf2cb1f commit cb3445f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/dev-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,31 @@ jobs:
fail-fast: false
matrix:
tag:
- 1.14
- 1.15
- 1.16
- 1.17
- 1.18
- 1.19
- latest
- '1.14'
- '1.15'
- '1.16'
- '1.17'
- '1.18'
- '1.19'
- '1.20'
- 1.21
- 1.22

- '1.21'
- '1.22'
- '1.23'

steps:
- uses: actions/checkout@v4

- uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/build-push-action@v6
with:
context: ./dev/go
Expand Down
14 changes: 14 additions & 0 deletions dev/go/1.23/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM --platform=$BUILDPLATFORM golang:1.23-alpine

LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.licenses=AGPL

RUN apk add --update --no-cache ca-certificates tzdata \
&& adduser -D -h /home/container container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]
14 changes: 14 additions & 0 deletions dev/go/latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM --platform=$BUILDPLATFORM golang:latest-alpine

LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.licenses=AGPL

RUN apk add --update --no-cache ca-certificates tzdata \
&& adduser -D -h /home/container container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/ash", "/entrypoint.sh" ]

0 comments on commit cb3445f

Please sign in to comment.