File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222 steps :
2323 - uses : actions/checkout@v4
24- - uses : quantmind/rops/.github/actions/setup-rops@main
24+ - name : install rops
25+ uses : quantmind/rops/.github/actions/setup-rops@main
2526 - name : install taplo
2627 run : rops tools update taplo
2728 - name : Set up Python ${{ matrix.python-version }}
5960
6061 deploy :
6162 name : Create Deployment
62- if : github.ref == 'refs/heads/deploy '
63+ if : github.ref == 'refs/heads/main '
6364 runs-on : ubuntu-latest
6465 permissions :
6566 deployments : write
Original file line number Diff line number Diff line change @@ -39,34 +39,17 @@ jobs:
3939 role-to-assume : arn:aws:iam::337900243020:role/GithubActions
4040 aws-region : eu-west-1
4141 - name : install rops
42- env :
43- GITHUB_TOKEN : ${{ secrets.TOKEN_DEPLOYMENT }}
44- run : |
45- ./devops/install/rops
46- echo "${HOME}/bin" >> $GITHUB_PATH
42+ uses : quantmind/rops/.github/actions/setup-rops@main
4743 - name : Install mozilla sops
4844 uses : mdgreenwald/mozilla-sops-action@v1.4.1
49- - name : deploy hft
45+ - name : deploy quantflow
5046 run : |
5147 rops charts update
5248 rops charts deploy \
53- hft \
49+ quantflow \
5450 --env ${K8S_ENV} \
5551 --set image.tag=${IMAGE_TAG} \
5652 --wait
57- - name : deploy code-server
58- run : |
59- rops charts deploy \
60- code-server \
61- --env ${K8S_ENV} \
62- --set image.tag=${IMAGE_TAG} \
63- --wait
64- - name : Update ingress configuration
65- uses : quantmind/metablock-ingress@v3
66- with :
67- token : ${{ secrets.METABLOCK_API_TOKEN }}
68- space : quantmind
69- path : devops/blocks
7053 - name : Update deployment status (success)
7154 if : success()
7255 uses : chrnorm/deployment-status@v2
Original file line number Diff line number Diff line change 2222 username : ${{ github.actor }}
2323 password : ${{ github.token }}
2424 - name : install rops
25- run : |
26- curl -L https://raw.githubusercontent.com/quantmind/rops/main/dev/install-rops | bash
27- echo "$HOME/bin" >> $GITHUB_PATH
25+ uses : quantmind/rops/.github/actions/setup-rops@main
2826 - name : build amd64
2927 run : rops docker build ${{ inputs.image-name }}
3028 - name : push amd64
4543 username : ${{ github.actor }}
4644 password : ${{ github.token }}
4745 - name : install rops
48- run : |
49- curl -L https://raw.githubusercontent.com/quantmind/rops/main/dev/install-rops | bash
50- echo "$HOME/bin" >> $GITHUB_PATH
46+ uses : quantmind/rops/.github/actions/setup-rops@main
5147 - name : build arm64
5248 run : rops docker build ${{ inputs.image-name }}
5349 - name : push arm64
6763 username : ${{ github.actor }}
6864 password : ${{ github.token }}
6965 - name : install rops
70- run : |
71- curl -L https://raw.githubusercontent.com/quantmind/rops/main/dev/install-rops | bash
72- echo "$HOME/bin" >> $GITHUB_PATH
66+ uses : quantmind/rops/.github/actions/setup-rops@main
7367 - name : create manifest
7468 run : rops docker manifest ${{ inputs.image-name }}
Original file line number Diff line number Diff line change 1+ html : false
2+ upstream : http://quantflow-{{ block }}.fluid.svc
3+ tags :
4+ - docs
5+ routes :
6+ - name : service
7+ protocols :
8+ - https
9+ strip_path : false
10+ tags :
11+ - public
12+ - {{ space }}
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : ConfigMap
3+ metadata :
4+ name : {{ template "quantflow.name" . }}
5+ labels :
6+ {{- include "quantflow.labels" . | nindent 4 }}
7+ data :
8+ {{- range $key, $value := .Values.vars }}
9+ {{ $key }}: {{ $value | quote }}
10+ {{- end }}
Original file line number Diff line number Diff line change 1+ {{- define "secret.content" -}}
2+ type : Opaque
3+ data :
4+ {{- range $key, $value := .Values.secrets }}
5+ {{ $key }}: {{ $value | b64enc }}
6+ {{- end }}
7+ {{- end }}
8+ ---
9+ apiVersion : v1
10+ kind : Secret
11+ metadata :
12+ name : {{ template "quantflow.name" . }}
13+ {{ include "secret.content" . }}
You can’t perform that action at this time.
0 commit comments