Skip to content
Weik.ioUniversity
Try Weik.io

An integration in a Git repository

GitOps 1 · 4:17

The hello integration and its devtest documents move into a Git repository, and the hub is updated from there after a plan shows what the update will change. The repository contains no secret values.

Download the mp4Recorded on 2026.2

What it covers

  • Turning the work folder into a Git repository with git init
  • The shared path sandbox/shared and the devtest path sandbox/devtest
  • Deployment and variable documents for devtest, with no secret value in the repository
  • A plan with weikio diff that applies nothing, with the prune name sandbox and its exit codes
  • Applying from the repository with weikio apply, which builds 0.2.0
  • A second commit with a new period and 0.2.1 in the integration and its deployment document

Commands in this video

Terminal
$ git init
$ weikio validate -f sandbox/shared -f sandbox/devtest
$ weikio diff -f sandbox/shared -f sandbox/devtest --env devtest --prune sandbox
$ echo $?
$ weikio apply -f sandbox/shared -f sandbox/devtest --env devtest --prune sandbox -y
$ git add sandbox
$ git commit -m 'hello in the repository'
$ git commit -m 'period 2000 and version 0.2.1'
$ git log --oneline
Transcript
  1. 0:01Typed commands started hello in devtest.
  2. 0:04This video puts hello into Git.
  3. 0:11Agent dev runs the sandbox/hello deployment.
  4. 0:17The devtest environment holds version 0.1.4,
  5. 0:21variable sandbox/message and secret sandbox/erp-api-key.
  6. 0:29The hello folder cannot say this.
  7. 0:35The work folder becomes a Git repository with git init.
  8. 0:39The repository starts on the branch main.
  9. 0:42The .git folder holds what Git stores about the repository.
  10. 0:46hello moves to sandbox/shared/hello, the shared path of the project.
  11. 0:54It holds what every environment of the project reads.
  12. 0:57Its integration.yaml states version 0.2.0.
  13. 1:04Two documents for devtest sit under sandbox/devtest.
  14. 1:09The Deployment document names what runs where: hello at version 0.2.0.
  15. 1:16The Variable document gives message the value hello again.
  16. 1:20The repository holds no secret value. The route names the secret it needs.
  17. 1:26weikio validate reads the two paths before anything is sent.
  18. 1:31The closing line counts the documents and the integration.
  19. 1:39The plan reads both paths and applies nothing.
  20. 1:42The prune carries one name for the repository, sandbox.
  21. 1:46The rows name the integration, the deployment and the variable.
  22. 1:51Both notes say this prune name has no earlier apply here.
  23. 1:55Exit code 0 means nothing would change, and 2 means something would.
  24. 2:05The apply writes what the plan listed.
  25. 2:07The y flag answers the prune confirmation in advance.
  26. 2:14The hub built 0.2.0, and the deployment card reads 0.2.0.
  27. 2:22Under the name sandbox, the hub now keeps what these two paths put there.
  28. 2:26The commit stores this state of the folder.
  29. 2:37The route fires every two seconds now. The integration folder states 0.2.1. The Deployment document now names 0.2.1.
  30. 2:52Both paths ran under the name sandbox before, so no note prints.
  31. 3:00The apply builds 0.2.1 and the deployment runs it.
  32. 3:08A pipeline runs these same commands.
  33. 3:11The commit names the new period and version.
  34. 3:23The repository holds two commits on main.
  35. 3:33Hello's page in the admin UI shows the new version.
  36. 3:37The strip reads 0.2.1. The Versions panel lists 0.2.0 and 0.1.4.
  37. 3:51The repository holds the route, the Deployment and Variable documents.
  38. 3:56The apply runs from the repository to the hub.
  39. 3:59The hub's newest version came from the folder.
  40. 4:02The deployment is 0.2.1 and running.
  41. 4:06Devtest runs it with the value hello again.

Next in this track

GitOps 2 · 3:45 Deleting and undoing through Git Watched