Compare commits
2 Commits
cdc094c7a1
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 0fba76dc7d | |||
| 7429e2fd95 |
@@ -144,7 +144,7 @@ Then:
|
|||||||
4. Manually promote that Freight to `staging`.
|
4. Manually promote that Freight to `staging`.
|
||||||
5. Check the STAGING site.
|
5. Check the STAGING site.
|
||||||
6. Manually promote the same Freight to `prod`.
|
6. Manually promote the same Freight to `prod`.
|
||||||
7. Kargo copies that selected revision into the `prod` branch and pushes it.
|
7. Kargo force-updates the `prod` branch to that exact selected revision.
|
||||||
8. Argo CD syncs the PROD site from `prod`.
|
8. Argo CD syncs the PROD site from `prod`.
|
||||||
|
|
||||||
The three Kubernetes namespaces are:
|
The three Kubernetes namespaces are:
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ spec:
|
|||||||
- values-staging.yaml
|
- values-staging.yaml
|
||||||
- values-prod.yaml
|
- values-prod.yaml
|
||||||
- templates
|
- templates
|
||||||
|
- website
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: kargo.akuity.io/v1alpha1
|
apiVersion: kargo.akuity.io/v1alpha1
|
||||||
@@ -113,67 +114,16 @@ spec:
|
|||||||
- uses: git-clone
|
- uses: git-clone
|
||||||
config:
|
config:
|
||||||
repoURL: ${{ vars.repoURL }}
|
repoURL: ${{ vars.repoURL }}
|
||||||
author:
|
|
||||||
name: Kargo
|
|
||||||
email: kargo@max.test.scrumdapp.open-ict.hu
|
|
||||||
checkout:
|
checkout:
|
||||||
- commit: ${{ commitFrom(vars.repoURL).ID }}
|
- commit: ${{ commitFrom(vars.repoURL).ID }}
|
||||||
path: ./src
|
|
||||||
- branch: prod
|
|
||||||
create: true
|
|
||||||
path: ./out
|
path: ./out
|
||||||
|
|
||||||
- uses: git-clear
|
|
||||||
config:
|
|
||||||
path: ./out
|
|
||||||
|
|
||||||
- uses: copy
|
|
||||||
config:
|
|
||||||
inPath: ./src/Chart.yaml
|
|
||||||
outPath: ./out/Chart.yaml
|
|
||||||
- uses: copy
|
|
||||||
config:
|
|
||||||
inPath: ./src/values.yaml
|
|
||||||
outPath: ./out/values.yaml
|
|
||||||
- uses: copy
|
|
||||||
config:
|
|
||||||
inPath: ./src/values-dev.yaml
|
|
||||||
outPath: ./out/values-dev.yaml
|
|
||||||
- uses: copy
|
|
||||||
config:
|
|
||||||
inPath: ./src/values-staging.yaml
|
|
||||||
outPath: ./out/values-staging.yaml
|
|
||||||
- uses: copy
|
|
||||||
config:
|
|
||||||
inPath: ./src/values-prod.yaml
|
|
||||||
outPath: ./out/values-prod.yaml
|
|
||||||
- uses: copy
|
|
||||||
config:
|
|
||||||
inPath: ./src/templates
|
|
||||||
outPath: ./out/templates
|
|
||||||
- uses: copy
|
|
||||||
config:
|
|
||||||
inPath: ./src/bootstrap
|
|
||||||
outPath: ./out/bootstrap
|
|
||||||
- uses: copy
|
|
||||||
config:
|
|
||||||
inPath: ./src/README.md
|
|
||||||
outPath: ./out/README.md
|
|
||||||
- uses: copy
|
|
||||||
config:
|
|
||||||
inPath: ./src/.gitignore
|
|
||||||
outPath: ./out/.gitignore
|
|
||||||
|
|
||||||
- uses: git-commit
|
|
||||||
as: commit
|
|
||||||
config:
|
|
||||||
path: ./out
|
|
||||||
message: Promote ${{ commitFrom(vars.repoURL).ID }} to prod
|
|
||||||
|
|
||||||
- uses: git-push
|
- uses: git-push
|
||||||
|
as: push
|
||||||
config:
|
config:
|
||||||
path: ./out
|
path: ./out
|
||||||
targetBranch: prod
|
targetBranch: prod
|
||||||
|
force: true
|
||||||
|
|
||||||
- uses: argocd-update
|
- uses: argocd-update
|
||||||
config:
|
config:
|
||||||
@@ -181,4 +131,4 @@ spec:
|
|||||||
- name: web-prod
|
- name: web-prod
|
||||||
sources:
|
sources:
|
||||||
- repoURL: ${{ vars.repoURL }}
|
- repoURL: ${{ vars.repoURL }}
|
||||||
desiredRevision: ${{ outputs.commit.commit }}
|
desiredRevision: ${{ outputs.push.commit }}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
environment: DEV
|
environment: DEV
|
||||||
gitCommit: 7cae72a
|
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
host: web-dev.max.test.scrumdapp.open-ict.hu
|
host: web-dev.max.test.scrumdapp.open-ict.hu
|
||||||
|
|||||||
@@ -12,4 +12,3 @@ ingress:
|
|||||||
path: /
|
path: /
|
||||||
|
|
||||||
environment: LOCAL
|
environment: LOCAL
|
||||||
gitCommit: unknown
|
|
||||||
|
|||||||
+14
-14
@@ -73,6 +73,17 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pipeline a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pipeline a:hover,
|
||||||
|
.pipeline a:focus-visible {
|
||||||
|
color: #5eead4;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
.environment {
|
.environment {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -85,16 +96,6 @@
|
|||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
.revision {
|
|
||||||
margin: 0.75rem 0 0;
|
|
||||||
color: #bfdbfe;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
color: #f8fafc;
|
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -107,12 +108,11 @@
|
|||||||
</p>
|
</p>
|
||||||
<ul class="pipeline" aria-label="Promotion flow">
|
<ul class="pipeline" aria-label="Promotion flow">
|
||||||
<li>dev branch</li>
|
<li>dev branch</li>
|
||||||
<li>DEV site</li>
|
<li><a href="http://web-dev.max.test.scrumdapp.open-ict.hu">DEV site</a></li>
|
||||||
<li>STAGING approval</li>
|
<li><a href="http://web-staging.max.test.scrumdapp.open-ict.hu">STAGING site</a></li>
|
||||||
<li>PROD release</li>
|
<li><a href="http://web-prod.max.test.scrumdapp.open-ict.hu">PROD site</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="environment">Current environment: {{ .Values.environment }}</div>
|
<div class="environment">Current environment: {{ .Values.environment }}</div>
|
||||||
<p class="revision">Git commit: <code>{{ .Values.gitCommit }}</code></p>
|
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user