forked from nats-io/nats-server
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.28 KB
/
nightly.yaml
File metadata and controls
51 lines (45 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Docker Nightly
on:
workflow_dispatch:
inputs:
target:
description: "Override source branch (optional)"
type: string
required: false
schedule:
- cron: "40 4 * * *"
permissions:
contents: read
jobs:
run:
runs-on: ${{ vars.GHA_WORKER_RELEASE || 'ubuntu-latest' }}
permissions:
contents: write
steps:
- name: Checkout NATS
uses: actions/checkout@v6
with:
path: src/github.com/nats-io/nats-server
ref: ${{ inputs.target || 'main' }}
fetch-depth: 0
fetch-tags: true
- name: Checkout NSC
uses: actions/checkout@v6
with:
repository: nats-io/nsc
path: src/github.com/nats-io/nsc
fetch-depth: 1
fetch-tags: true
- name: Checkout NATS CLI
uses: actions/checkout@v6
with:
repository: nats-io/natscli
path: src/github.com/nats-io/natscli
fetch-depth: 1
fetch-tags: true
- name: Build Docker nightly
uses: ./src/github.com/nats-io/nats-server/.github/actions/nightly-release
with:
name: ${{ inputs.target || 'nightly' }}
hub_username: "${{ secrets.DOCKER_USERNAME }}"
hub_password: "${{ secrets.DOCKER_PASSWORD }}"