-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
141 additions
and
159 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
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 |
---|---|---|
@@ -1,35 +1,14 @@ | ||
# Copyright 2024 Defense Unicorns | ||
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial | ||
|
||
name: Scan | ||
|
||
on: | ||
# This workflow is triggered on pull requests to the main branch. | ||
pull_request: | ||
branches: [main] | ||
types: [milestoned, opened, synchronize] | ||
types: [milestoned, opened, reopened, synchronize] | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
name: Lint | ||
permissions: | ||
contents: read # Allows reading the repo contents | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Environment setup | ||
uses: defenseunicorns/uds-common/.github/actions/setup@24c8a2a48eeb33773b76b3587c489cb17496c9e0 # v0.12.0 | ||
with: | ||
registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }} | ||
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }} | ||
ghToken: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install lint deps | ||
run: | | ||
uds run lint:deps | ||
- name: Lint the repository | ||
run: | | ||
uds run lint:yaml | ||
uses: defenseunicorns/uds-common/.github/workflows/callable-lint.yaml@f0164622ffc2007e96a0e1deaa3f5064db04b148 # v1.1.0 | ||
secrets: inherit | ||
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Copyright 2024 Defense Unicorns | ||
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial | ||
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
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,97 +1,92 @@ | ||
includes: | ||
- cleanup: ./tasks/cleanup.yaml | ||
- test: ./tasks/test.yaml | ||
- create: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.12.0/tasks/create.yaml | ||
- lint: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.12.0/tasks/lint.yaml | ||
- pull: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.12.0/tasks/pull.yaml | ||
- deploy: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.12.0/tasks/deploy.yaml | ||
- upgrade: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.12.0/tasks/upgrade.yaml | ||
- setup: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.12.0/tasks/setup.yaml | ||
- dependencies: ./tasks/dependencies.yaml | ||
- create: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/create.yaml | ||
- lint: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/lint.yaml | ||
- pull: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/pull.yaml | ||
- deploy: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/deploy.yaml | ||
- setup: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/setup.yaml | ||
- actions: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/actions.yaml | ||
- badge: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/badge.yaml | ||
- upgrade: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/upgrade.yaml | ||
- compliance: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/compliance.yaml | ||
- publish: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/publish.yaml | ||
|
||
tasks: | ||
- name: default | ||
description: Create K3D Cluster with UDS-Core + Jenkins | ||
description: Create K3D Cluster with lite UDS-Core + Jenkins | ||
actions: | ||
- task: create-jenkins-test-bundle | ||
- task: setup:k3d-test-cluster | ||
# TODO: Remove pinned version after uds-common releases 0.12.1 or later | ||
with: | ||
version: 0.26.1 | ||
- task: deploy:test-bundle | ||
|
||
- task: create-dev-package | ||
- task: setup:k3d-full-cluster | ||
- task: create-deploy-test-bundle | ||
|
||
- name: default-full | ||
description: Create K3D Cluster with UDS-Core + Jenkins | ||
description: Create K3D Cluster with full UDS-Core + Jenkins | ||
actions: | ||
- task: create-jenkins-test-bundle | ||
- task: create-dev-package | ||
- task: setup:k3d-full-cluster | ||
# TODO: Remove pinned version after uds-common releases 0.12.1 or later | ||
with: | ||
version: 0.26.1 | ||
- task: deploy:test-bundle | ||
- task: create-deploy-test-bundle | ||
|
||
- name: create-jenkins-package | ||
- name: create-dev-package | ||
description: Create UDS Jenkins Package | ||
actions: | ||
- task: create:package | ||
with: | ||
options: "--skip-sbom" | ||
|
||
- name: create-jenkins-test-bundle | ||
description: Create a local UDS Jenkins bundle | ||
actions: | ||
- task: create-jenkins-package | ||
- task: create:test-bundle | ||
|
||
- name: create-jenkins-latest-release-bundle | ||
description: Create UDS Jenkins bundle based on the latest release | ||
- name: create-deploy-test-bundle | ||
description: Test and validate cluster is deployed with Jenkins | ||
actions: | ||
- task: pull:latest-package-release | ||
with: | ||
spoof_release: "true" | ||
- task: dependencies:create | ||
- task: create:test-bundle | ||
|
||
- name: setup-cluster | ||
description: Setup a K3D cluster with UDS-Core-Slim | ||
actions: | ||
- task: setup:k3d-test-cluster | ||
# TODO: Remove pinned version after uds-common releases 0.12.1 or later | ||
with: | ||
version: 0.26.1 | ||
- task: deploy:test-bundle | ||
- task: setup:create-doug-user | ||
- task: test:all | ||
|
||
- name: dev | ||
description: Create then deploy local jenkins bundle | ||
description: Create and deploy the bundle on an existing cluster (for iteration/dev speed) | ||
actions: | ||
- task: create-jenkins-test-bundle | ||
- task: create-dev-package | ||
- task: create:test-bundle | ||
- task: deploy:test-bundle | ||
|
||
# CI will execute the following (via uds-common/.github/actions/test) so they need to be here with these names | ||
|
||
- name: test-package | ||
description: Test the Jenkins package from the current branch | ||
actions: | ||
- task: create-jenkins-test-bundle | ||
- task: dependencies:create | ||
- task: create-dev-package | ||
- task: setup:k3d-test-cluster | ||
# TODO: Remove pinned version after uds-common releases 0.12.1 or later | ||
with: | ||
version: 0.26.1 | ||
- task: deploy:test-bundle | ||
- task: setup:create-doug-user | ||
- task: test:health-check | ||
- task: test:ingress | ||
- task: create-deploy-test-bundle | ||
- task: test:ui | ||
|
||
- name: test-upgrade | ||
description: Test an upgrade from the latest released package to the current branch | ||
actions: | ||
- task: dependencies:create | ||
- task: upgrade:create-latest-tag-bundle | ||
- task: setup:k3d-test-cluster | ||
# TODO: Remove pinned version after uds-common releases 0.12.1 or later | ||
with: | ||
version: 0.26.1 | ||
- task: deploy:test-bundle | ||
- task: create-jenkins-test-bundle | ||
- task: deploy:test-bundle | ||
- task: setup:create-doug-user | ||
- task: test:health-check | ||
- task: test:ingress | ||
- task: test:ui | ||
- task: create-dev-package | ||
- task: create-deploy-test-bundle | ||
|
||
|
||
- name: publish-package | ||
description: Build and publish the packages | ||
actions: | ||
- description: Create the package | ||
task: create:package | ||
|
||
- description: Setup the cluster | ||
task: setup:k3d-test-cluster | ||
|
||
- description: Create deploy and test the bundle | ||
task: create-deploy-test-bundle | ||
|
||
- description: Publish the packages | ||
task: publish:package | ||
with: | ||
# x-release-please-start-version | ||
version: 3.72.0-uds.0 | ||
# x-release-please-end |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
# Copyright 2024 Defense Unicorns | ||
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial | ||
|
||
tasks: | ||
- name: create | ||
description: Create the Dev-Secrets Dependency Zarf Package | ||
inputs: | ||
options: | ||
description: For setting create time variables and flags | ||
architecture: | ||
description: The architecture of the package to create | ||
default: ${UDS_ARCH} | ||
actions: | ||
- cmd: ./uds zarf package create src/dev-secrets/ --confirm --no-progress --architecture=${{ .inputs.architecture }} --skip-sbom ${{ .inputs.options }} | ||
- cmd: ./uds zarf package create src/namespace/ --confirm --no-progress --architecture=${{ .inputs.architecture }} --skip-sbom ${{ .inputs.options }} | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.