generated from ContainerCraft/devcontainer
-
Notifications
You must be signed in to change notification settings - Fork 14
72 lines (61 loc) · 2.04 KB
/
readme.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
# This Github Workflow will run on every push to the repository
# and will test and validate the Kargo codebase using Kind Kubernetes.
name: Runme Kargo Quickstart CI
on: push
jobs:
readme:
runs-on: ubuntu-latest
container:
image: ghcr.io/containercraft/konductor:latest
options: --user runner --security-opt seccomp=unconfined
steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- id: list
name: List Runme Commands
run: |
runme list
- id: login
name: Login to Cloud Accounts
run: |
runme run login
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: configure
name: Configure Kargo Deployment
run: |
export ORGANIZATION="${GITHUB_USER:-${GITHUB_REPOSITORY_OWNER:-}}"
runme run configure
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USER: ${{ github.actor }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
# - id: kubernetes
# name: Deploy Kubernetes
# run: |
# runme run kubernetes
# - id: deploy
# name: Deploy Kargo Platform on Kubernetes
# run: |
# runme run deploy
# env:
# PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Debug Build
# uses: stateful/vscode-server-action@v1
# if: failure()
# with:
# timeout: "300000"
- id: clean
name: Clean Up Kubernetes & Kargo Deployment
if: failure() || success()
run: |
runme run clean
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}