Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding target branch in on-demand nightly image builds #4019

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: "NATS Server Nightly: DEV"
on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
target:
description: "Override image branch (optional)"
type: string
required: false

schedule:
- cron: "40 4 * * *"


jobs:
nightly_release:
runs-on: ubuntu-latest
Expand All @@ -14,12 +18,12 @@ jobs:
uses: actions/checkout@v3
with:
path: src/github.com/nats-io/nats-server
ref: dev
ref: ${{ inputs.target || 'dev' }}

- uses: ./src/github.com/nats-io/nats-server/.github/actions/nightly-release
with:
go: "1.19"
workdir: src/github.com/nats-io/nats-server
label: nightly
hub_username: "${{ secrets.DOCKER_USERNAME }}"
hub_password: "${{ secrets.DOCKER_PASSWORD }}"
hub_password: "${{ secrets.DOCKER_PASSWORD }}"
12 changes: 8 additions & 4 deletions .github/workflows/rc_nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: "NATS Server Nightly: MAIN"
on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
target:
description: "Override image branch (optional)"
type: string
required: false

schedule:
- cron: "40 4 * * *"


jobs:
nightly_main_release:
runs-on: ubuntu-latest
Expand All @@ -14,12 +18,12 @@ jobs:
uses: actions/checkout@v3
with:
path: src/github.com/nats-io/nats-server
ref: main
ref: ${{ inputs.target || 'main' }}

- uses: ./src/github.com/nats-io/nats-server/.github/actions/nightly-release
with:
go: "1.19"
workdir: src/github.com/nats-io/nats-server
label: nightly-main
hub_username: "${{ secrets.DOCKER_USERNAME }}"
hub_password: "${{ secrets.DOCKER_PASSWORD }}"
hub_password: "${{ secrets.DOCKER_PASSWORD }}"