Docker Nightly #2324
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }}" |