Skip to content

Commit

Permalink
Fix Go version in Docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Twigg <neil@nats.io>
  • Loading branch information
neilalexander committed Jan 28, 2025
1 parent 861081f commit 7f588c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/actions/nightly-release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ runs:
shell: bash
run: docker login -u "${{ inputs.hub_username }}" -p "${{ inputs.hub_password }}"

- name: docker_push
- name: docker_push_nightly
if: inputs.label == 'nightly'
shell: bash
run: |
NDATE=$(date +%Y%m%d)
Expand All @@ -57,3 +58,12 @@ runs:
docker push synadia/nats-server:${{ inputs.label }}-${NDATE}
docker push synadia/nats-server:${{ inputs.label }}
- name: docker_push_custom
if: inputs.label != 'nightly'
shell: bash
run: |
NDATE=$(date +%Y%m%d)
docker push synadia/nats-server:${{ inputs.label }}-${NDATE}
docker push synadia/nats-server:${{ inputs.label }}
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: ./src/github.com/nats-io/nats-server/.github/actions/nightly-release
with:
go: "1.21"
go: "stable"
workdir: src/github.com/nats-io/nats-server
label: nightly
hub_username: "${{ secrets.DOCKER_USERNAME }}"
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.nightly
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine AS builder
FROM golang:alpine AS builder

ARG VERSION="nightly"

Expand Down

0 comments on commit 7f588c2

Please sign in to comment.