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 90fc71b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/actions/nightly-release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ inputs:

label:
description: The label to use for built images
required: true
required: false
default: nightly

hub_username:
description: Docker hub username
Expand Down Expand Up @@ -51,9 +52,5 @@ runs:
shell: bash
run: |
NDATE=$(date +%Y%m%d)
docker tag synadia/nats-server:nightly-${NDATE} synadia/nats-server:${{ inputs.label }}-${NDATE}
docker tag synadia/nats-server:nightly-${NDATE} synadia/nats-server:${{ inputs.label }}
docker push synadia/nats-server:${{ inputs.label }}-${NDATE}
docker push synadia/nats-server:${{ inputs.label }}
9 changes: 7 additions & 2 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
description: "Override image branch (optional)"
type: string
required: false
label:
description: "Override tag label (optional)"
type: string
required: false
default: "nightly"

schedule:
- cron: "40 4 * * *"
Expand All @@ -22,8 +27,8 @@ 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
label: ${{ inputs.label }}
hub_username: "${{ secrets.DOCKER_USERNAME }}"
hub_password: "${{ secrets.DOCKER_PASSWORD }}"
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 90fc71b

Please sign in to comment.