-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): add nightly releases (#162)
- Loading branch information
Showing
8 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: PR Ttle | ||
name: PR Title and Commit Lint | ||
|
||
on: | ||
pull_request: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Nightly Release | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 3 * * *" ## nightly at 3am UTC | ||
|
||
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@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.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: Publish | ||
run: | | ||
uds run build:publish-uds-runtime --set REF=nightly-unstable --set DIR=hack | ||
- name: Update nightly-unstable tag | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} | ||
working-directory: hack | ||
run: | | ||
# cleanup old release | ||
gh release delete nightly-unstable --cleanup-tag -y || true | ||
# generate new release | ||
gh release create nightly-unstable ./build/zarf-package-uds-runtime-* \ | ||
-t "nightly-unstable" \ | ||
--prerelease \ | ||
-n 'Nightly unstable build' |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,7 @@ node_modules | |
.output | ||
.vercel | ||
/ui/.svelte-kit | ||
/ui/build | ||
/build | ||
**/build/ | ||
|
||
# OS | ||
.DS_Store | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: uds-runtime | ||
description: nightly release of uds-runtime | ||
version: nightly-unstable | ||
|
||
components: | ||
- name: uds-runtime | ||
required: true | ||
images: | ||
- ghcr.io/defenseunicorns/uds-runtime:nightly-unstable | ||
charts: | ||
- name: uds-runtime | ||
localPath: ../chart | ||
namespace: uds-runtime | ||
version: 0.1.0 |
This file contains 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
This file contains 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
This file contains 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