Skip to content

Commit

Permalink
Introduce techlab build
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-pona committed Sep 24, 2024
1 parent b69737a commit 358840e
Show file tree
Hide file tree
Showing 17 changed files with 76 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ jobs:
push: true
tags: |
quay.io/acend/argocd-basics-training:pr-${{ github.event.pull_request.number }}
-
name: Build Techlab Version
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
build-args: |
TRAINING_HUGO_ENV=techlab
push: true
tags: |
quay.io/acend/argocd-basics-training:pr-${{ github.event.pull_request.number }}-techlab
-
name: Build Puzzle Version
uses: docker/build-push-action@v6
Expand Down Expand Up @@ -86,6 +97,7 @@ jobs:
TRAINING_NAMESPACE: 'acend-argocd-basics-training-test'
run: |
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME}-acend --kubeconfig $HOME/.kube/config --namespace $TRAINING_NAMESPACE
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME}-techlab --kubeconfig $HOME/.kube/config --namespace $TRAINING_NAMESPACE
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME}-puzzle --kubeconfig $HOME/.kube/config --namespace $TRAINING_NAMESPACE
-
name: Comment PR Environments in PR
Expand All @@ -95,4 +107,5 @@ jobs:
message: |
PR Environments:
* acend version <https://argocd-basics-pr-${{ github.event.pull_request.number }}.training.acend.ch>
* techlab version <https://argocd-techlab-pr-${{ github.event.pull_request.number }}.training.acend.ch>
* puzzle version <https://argocd-basics-pr-${{ github.event.pull_request.number }}.training.puzzle.ch>
2 changes: 1 addition & 1 deletion .github/workflows/pr-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
QUAYIO_API_TOKEN: '${{ secrets.QUAYIO_API_TOKEN }}'
REPOSITORY: '${{ github.repository }}'
run: |
curl -X DELETE -H "Authorization: Bearer ${QUAYIO_API_TOKEN}" https://quay.io/api/v1/repository/${REPOSITORY}/tag/pr-${PR_NUMBER}{,-puzzle}
curl -X DELETE -H "Authorization: Bearer ${QUAYIO_API_TOKEN}" https://quay.io/api/v1/repository/${REPOSITORY}/tag/pr-${PR_NUMBER}{,-techlab,-puzzle}
12 changes: 12 additions & 0 deletions .github/workflows/push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ jobs:
push: true
tags: |
quay.io/acend/argocd-basics-training:latest
-
name: Build Techlab Version
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
build-args: |
TRAINING_HUGO_ENV=techlab
push: true
tags: |
quay.io/acend/argocd-basics-training:latest-techlab
-
name: Build Puzzle Version
uses: docker/build-push-action@v6
Expand Down Expand Up @@ -88,4 +99,5 @@ jobs:
TRAINING_NAMESPACE: 'acend-argocd-basics-training-prod'
run: |
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME}-acend --kubeconfig $HOME/.kube/config --namespace $TRAINING_NAMESPACE
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME}-techlab --kubeconfig $HOME/.kube/config --namespace $TRAINING_NAMESPACE
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME}-puzzle --kubeconfig $HOME/.kube/config --namespace $TRAINING_NAMESPACE
12 changes: 12 additions & 0 deletions config/techlab/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

[Languages]
[Languages.en]
title = "ArgoCD Techlab"
languageName = "English"
weight = 1


[params]
enabledModule = "base techlab"
github_repo = ""
github_branch = ""
15 changes: 14 additions & 1 deletion content/en/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
linkTitle = "ArgoCD Basics Training"

+++

{{< onlyWhenNot techlab >}}
{{< blocks/cover title="Welcome to the ArgoCD Basics Training" image_anchor="top" height="full" color="primary" >}}
<div class="mx-auto">
<a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/setup" >}}">
Expand All @@ -17,3 +17,16 @@
</a>
</div>
{{< /blocks/cover >}}
{{< /onlyWhenNot >}}
{{< onlyWhen techlab >}}
{{< blocks/cover title="Welcome to the ArgoCD Techlab" image_anchor="top" height="full" color="primary" >}}
<div class="mx-auto">
<a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/setup" >}}">
Setup <i class="fas fa-cogs ml-2 "></i>
</a>
<a class="btn btn-lg btn-secondary mr-3 mb-4" href="{{< relref "/docs" >}}">
Labs <i class="fas fa-flask ml-2"></i>
</a>
</div>
{{< /blocks/cover >}}
{{< /onlyWhen >}}
1 change: 1 addition & 0 deletions content/en/docs/06/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "6. Multiple Applications"
weight: 6
sectionnumber: 6
onlyWhenNot: techlab
---

When it comes to managing a larger amount of application or bootstrapping whole environments, it's not very practical to manage the ArgoCD application manually using the CLI Tool `argocd app create`.
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/06/app_of_apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "6.1 App of Apps"
weight: 601
sectionnumber: 6.1
onlyWhenNot: techlab
---
The [App of apps](https://argoproj.github.io/argo-cd/operator-manual/cluster-bootstrapping/#app-of-apps-pattern) pattern is a declarative specification of one ArgoCD app that consists only of **other ArgoCD applications**.
This way we have the possibility to deploy multiple apps within just one single App definition.
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/06/application_sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "6.2 Application Sets"
weight: 602
sectionnumber: 6.2
onlyWhenNot: techlab
---

With the ApplicationSet ArgoCD adds support for managing ArgoCD Application across a large number of clusters and environments. Plus it adds the capability of managing multitenant Kubernetes clusters.
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/07/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "7. Projects"
weight: 7
sectionnumber: 7
onlyWhenNot: techlab
---

Argo CD applications can be linked to a project which provides a logical grouping of applications. The following configurations can be made on a project:
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/08/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "8. Controlling Deployment Workflows"
weight: 8
sectionnumber: 8
onlyWhenNot: techlab
---

In this chapter you'll learn how to control the Deployment Workflow even more.
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/08/sync_windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "8.2 Sync Windows"
weight: 82
sectionnumber: 8.2
onlyWhenNot: techlab
---

With Sync windows the user can define at which time applications can be synchronized automatically and manually by Argo CD. Allowed and forbidden time windows can be defined. Sync windows can be restricted to a subset of applications, clusters and namespaces and thus offer great flexibility.
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/08/tracking_deployment_strategies.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "8.1 Tracking and Deployment Strategies"
weight: 81
sectionnumber: 8.1
onlyWhenNot: techlab
---

If you are using ArgoCD with Git or Helm tools, ArgoCD gives you the availability to configure different tracking and deployment strategies.
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/additional/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "9. Additional Concepts"
weight: 90
sectionnumber: 9
onlyWhenNot: techlab
---

In this chapter you'll learn additional concepts of ArgoCD
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/additional/backup_restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "9.2 Backup and Restore"
weight: 902
sectionnumber: 9.2
onlyWhenNot: techlab
---

{{% alert title="Warning" color="warning" %}}
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/additional/orphaned_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "9.1 Orphaned Resources"
weight: 901
sectionnumber: 9.1
onlyWhenNot: techlab
---

This lab contains demonstrates how to find orphaned top-level resources with Argo CD. Orphaned resources are not managed by Argo CD and could be potentially removed from cluster.
Expand Down
2 changes: 2 additions & 0 deletions content/en/slides/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ menu:

{{< blocks/section color="light">}}

{{% onlyWhenNot techlab %}}
{{% blocks/feature icon="fa-chalkboard-teacher" url="https://drive.google.com/drive/folders/1IgCIBVybSDrxxdYyvT8HKpZugIdWMnRY?usp=sharing" title="ArgoCD Basics Training Presentations" %}}
{{% /blocks/feature %}}
{{% /onlyWhenNot %}}

{{% blocks/feature icon="fa-chalkboard-teacher" url="../pdf/pdf.pdf" title="Lab PDF" %}}
{{% /blocks/feature %}}
Expand Down
13 changes: 12 additions & 1 deletion helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ acendTraining:
secretOverride: acend-wildcard
appname: argocd-basics
domain: training.acend.ch
-
name: techlab
replicaCount: 2
image:
repository: quay.io/acend/argocd-basics-training
pullPolicy: Always
tag: ""
tagsuffix: "-techlab"
ingress:
secretOverride: acend-wildcard
appname: argocd-techlab
domain: training.acend.ch
-
name: puzzle
replicaCount: 2
Expand All @@ -28,7 +40,6 @@ acendTraining:
domain: training.puzzle.ch



nameOverride: "acend-argocd-basics"
fullnameOverride: ""

Expand Down

0 comments on commit 358840e

Please sign in to comment.