Skip to content

Commit

Permalink
Merge pull request #5970 from shaneknapp/more-sops-madness
Browse files Browse the repository at this point in the history
[DH-301] more sops and github action gymnastics
  • Loading branch information
shaneknapp authored Aug 19, 2024
2 parents c68d215 + 9b93f96 commit 126b8fd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy-to-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,18 @@ jobs:
if: ${{ env.DEPLOY }}
run: |
mkdir -p ${HOME}/bin
curl -sSL https://github.com/mozilla/sops/releases/download/v3.7.0/sops-v3.7.0.linux -o ${HOME}/bin/sops
curl -sSL https://github.com/mozilla/sops/releases/download/v3.9.0/sops-v3.9.0.linux -o ${HOME}/bin/sops
chmod 755 ${HOME}/bin/sops
echo "${HOME}/bin" >> $GITHUB_PATH
- name: Store SOPS secret in a file
if: ${{ env.DEPLOY }}
run: |
cat << EOF > ${HOME}/sops.key
${{ secrets.SOPS_KEY }}
EOF
echo "GOOGLE_APPLICATION_CREDENTIALS=${HOME}/sops.key" >> $GITHUB_ENV
- name: Install Helm
if: ${{ env.DEPLOY }}
run: |
Expand All @@ -78,8 +86,6 @@ jobs:
- name: Deploy hubs to staging
if: ${{ env.DEPLOY }}
run: |
echo ${{ secrets.SOPS_KEY }} > ${HOME}/sops.key
export GOOGLE_APPLICATION_CREDENTIALS="${HOME}/sops.key"
for hub in $(echo -e "${{ env.DEPLOY_HUBS }}"); do
echo "Deploying $hub to staging"
hubploy --verbose deploy $hub hub staging
Expand Down

0 comments on commit 126b8fd

Please sign in to comment.