Skip to content

Nightly Release

Nightly Release #74

name: Nightly Release
on:
workflow_dispatch:
schedule:
- cron: "0 9 * * *" # Runs at 9:00 AM UTC, which is 3:00 AM MT during Daylight Saving Time
permissions:
contents: read
jobs:
test:
uses: ./.github/workflows/pr-tests.yaml
push:
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
packages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-tags: "true"
- name: Login to GHCR
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Environment (Go, Node, Homebrew, UDS CLI, k3d)
uses: ./.github/actions/setup
- name: smoke-test
run: uds run test:smoke --set DIR=hack/smoke-test
- name: Publish
run: |
uds run build:publish-uds-runtime --set REF=nightly-unstable --set DIR=hack/nightly
- name: Build binary artifacts
run: |
uds run build:all
- name: Update nightly-unstable tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
working-directory: hack/nightly
run: |
# cleanup old release
gh release delete nightly-unstable --cleanup-tag -y || true
# generate new release
gh release create nightly-unstable ./build/* ../../build/*\
-t "nightly-unstable" \
--prerelease \
-n 'Nightly unstable build'