Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
silhouetteUA authored Dec 27, 2023
1 parent ddc5391 commit b756195
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b756195

Please sign in to comment.