Skip to content

Commit

Permalink
Update deploy-helmfile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
miron4dev committed Sep 20, 2024
1 parent 6f902b3 commit 5955cbd
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/deploy-helmfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,26 @@ on:
description: "Path to the helm charts"
type: string
jobs:
generate_token:
runs-on:
group: builder
outputs:
token: ${{steps.app-token.outputs.token}}
steps:
- uses: actions/create-github-app-token@v1
- id: app-token
with:
app-id: ${{ secrets.GOLANG_BUILDER_APP_ID }}
private-key: ${{ secrets.GOLANG_BUILDER_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

deploy:
needs: generate_token
container:
image: ghcr.io/chirpwireless/docker/actions-deployer-runner-image:feature-initial-eeaa612
# credentials:
# username: ${{ secrets.GITLAB_CI_USERNAME }}
# password: ${{ secrets.GITLAB_CI_PASSWORD }}
credentials:
username: x-access-token
password: ${{ needs.generate_token.outputs.token }}
runs-on:
group: ${{ inputs.environment == 'prod' && 'gke-prod' || 'gke-non-prod'}}
environment:
Expand Down

0 comments on commit 5955cbd

Please sign in to comment.