-
Notifications
You must be signed in to change notification settings - Fork 1
/
tasks.yaml
74 lines (65 loc) · 2.7 KB
/
tasks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
includes:
- dependencies: ./tasks/dependencies.yaml
- test: ./tasks/test.yaml
- create: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.10.0/tasks/create.yaml
- lint: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.10.0/tasks/lint.yaml
- pull: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.10.0/tasks/pull.yaml
- deploy: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.10.0/tasks/deploy.yaml
- setup: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.10.0/tasks/setup.yaml
tasks:
- name: default
description: Setup k3d cluster, deploy Gitlab, deploy Gitlab runner
actions:
- task: create-glr-test-bundle
- task: setup:k3d-test-cluster
- task: dependencies:deploy
- task: deploy:test-bundle
- name: create-glr-package
description: Create the Gitlab runner package
actions:
- task: create:package
with:
options: "--skip-sbom"
- name: create-glr-test-bundle
description: Create a local UDS Gitlab Runner bundle
actions:
- task: create-glr-package
- task: create:test-bundle
- name: create-glr-latest-release-bundle
description: Create UDS Gitlab Runner bundle based on the latest release
actions:
- task: pull:latest-package-release
with:
spoof_release: "true"
- task: create:test-bundle
- name: dev
description: Deploy gitlab-runner on existing cluster with existing gitlab
actions:
- task: create-glr-package
- task: create-glr-test-bundle
- task: deploy:test-bundle
- name: doug-admin
description: Promote Doug to admin (requires running setup:create-doug-user and logging into gitlab ui first)
actions:
- cmd: |
./uds zarf tools kubectl exec -n gitlab deployment/gitlab-toolbox -- gitlab-rails runner -e production "user = User.find_by(username: 'doug'); user.admin = true; user.save!"
# 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 health of Gitlab and Gitlab Runner deployments
actions:
- task: create-glr-test-bundle
- task: setup:k3d-test-cluster
- task: dependencies:deploy
- task: deploy:test-bundle
- task: test:all
- name: test-upgrade
description: Test an upgrade from the latest released package to the current branch
actions:
- task: create-glr-latest-release-bundle
- task: setup:k3d-test-cluster
- task: dependencies:deploy
- task: deploy:test-bundle
- task: setup:create-doug-user
- task: create-glr-test-bundle
- task: deploy:test-bundle
- task: test:all