mirror of
https://github.com/dragonflydb/dragonfly
synced 2024-11-21 23:19:53 +00:00
fix(action): switch git push to dedicated action (#192)
Docker release pipeline can not push to protected main branch using the service token. This switches to PAT secret. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
080203ec21
commit
567af06d2c
9
.github/workflows/docker-release.yml
vendored
9
.github/workflows/docker-release.yml
vendored
@ -35,6 +35,8 @@ jobs:
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: dsaltares/fetch-gh-release-asset@master
|
||||
with:
|
||||
@ -115,6 +117,7 @@ jobs:
|
||||
- name: Update helm chart
|
||||
if: env.IS_PRERELEASE != 'true'
|
||||
run: |
|
||||
git checkout main
|
||||
sed -Ei \
|
||||
-e 's/^(version\:) .*/\1 '${{ env.TAG_NAME }}'/g' \
|
||||
-e 's/^(appVersion\:) .*/\1 "'${{ env.TAG_NAME }}'"/g' \
|
||||
@ -124,4 +127,8 @@ jobs:
|
||||
-m 'chore(helm-chart): update to ${{ env.TAG_NAME }}' \
|
||||
contrib/charts/dragonfly/Chart.yaml
|
||||
|
||||
git push
|
||||
- name: GitHub Push
|
||||
uses: CasperWA/push-protected@v2
|
||||
with:
|
||||
token: ${{ secrets.DRAGONFLY_TOKEN }}
|
||||
branch: main
|
Loading…
Reference in New Issue
Block a user