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 225b866 commit ddc5391
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ jobs:
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
##################################

- name: Access GCP Secret Manager Secret
run: |
SECRET_VALUE=$(gcloud secrets versions access latest --secret=${{ env.SECRET_NAME }})
echo "Secret Value: $SECRET_VALUE"

- name: Install sops
run: |
Expand All @@ -49,8 +44,7 @@ jobs:
- name: Prepare an unencrypted file
run: |
kubectl -n course create secret generic kbot-teletoken --from-literal TELE_TOKEN=$(gcloud secrets versions access latest --secret=${{ env.SECRET_NAME }}) --dry-run=client -o yaml > secret.yaml && \
cat secret.yaml
kubectl -n course create secret generic kbot-teletoken --from-literal TELE_TOKEN=$(gcloud secrets versions access latest --secret=${{ env.SECRET_NAME }}) --dry-run=client -o yaml > secret.yaml
- name: Encrypt file with sops
run: |
Expand Down

0 comments on commit ddc5391

Please sign in to comment.