Debian Codegraph @

.github/workflows/nightly.yaml

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