-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddc5391
commit b756195
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,17 @@ jobs: | |
run: | | ||
sops -e -gcp-kms projects/devops-course-prometheus/locations/global/keyRings/sops-flux/cryptoKeys/sops-keys-flux --encrypted-regex '^(TELE_TOKEN)$' secret.yaml > secret-encrypted.yaml | ||
cat secret-encrypted.yaml | ||
- name: Clone Flux repo and add encrypted secret | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git clone [email protected]:silhouetteUA/gitops-flux-sops.git . | ||
mv secret-encrypted.yaml cluster/fluxcd-gke/resources | ||
git add . | ||
git commit -m "add encrypted secret to flux repo" | ||
git remote add flux-repo [email protected]:silhouetteUA/gitops-flux-sops.git | ||
git push -u flux-repo main | ||
# ci: | ||
|