Skip to content

Commit f2506b1

Browse files
committed
fix: deploy to stacks enabled
1 parent b5f7317 commit f2506b1

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

.github/workflows/release-flask.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ on:
3030
type: string
3131
required: false
3232
default: ${{ inputs.app-name }}
33+
stacks-branch-name:
34+
type: string
35+
required: false
36+
default: ${{ inputs.app-name }}
3337
app-name:
3438
type: string
3539
required: true
@@ -102,13 +106,13 @@ jobs:
102106
- name: Add NPM Registry
103107
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
104108

105-
- name: Auhtorize github.com
106-
env:
107-
GH_PAT: ${{ secrets.GH_TOKEN }}
108-
GIT_TERMINAL_PROMPT: 0
109-
run: |
110-
git config --global --replace-all url."https://${GH_PAT}@github.com/".insteadOf git@github.com:
111-
git config --global --add url."https://${GH_PAT}@github.com/".insteadOf "https://github.com/"
109+
# - name: Auhtorize github.com
110+
# env:
111+
# GH_PAT: ${{ secrets.GH_TOKEN }}
112+
# GIT_TERMINAL_PROMPT: 0
113+
# run: |
114+
# git config --global --replace-all url."https://${GH_PAT}@github.com/".insteadOf git@github.com:
115+
# git config --global --add url."https://${GH_PAT}@github.com/".insteadOf "https://github.com/"
112116

113117
- name: Get & build for asset
114118
run: |
@@ -138,13 +142,13 @@ jobs:
138142
--file ci.Dockerfile .
139143
docker push ${{ env.IMAGE }}
140144
141-
# - name: Deploy to stacks
142-
# run: |
143-
# git clone git@github.com:coingaming/${{ inputs.stacks-repo }}
144-
# cd ${{ inputs.stacks-repo }}
145-
# git checkout ${{ inputs.stacks-branch-name }}
145+
- name: Deploy to stacks
146+
run: |
147+
git clone https://${{secrets.GH_TOKEN }}@github.com/coingaming/${{ inputs.stacks-repo }}
148+
cd ${{ inputs.stacks-repo }}
149+
git checkout ${{ inputs.stacks-branch-name }}
146150
147-
# scripts/update-image ${{ inputs.stacks-name }} ${{inputs.service-name }} ${{ env.IMAGE }}
151+
scripts/update-image ${{ inputs.stacks-name }} ${{inputs.service-name }} ${{ env.IMAGE }}
148152
149-
# git commit -am "upgraded ${{inputs.service-name }} service with ${{ env.IMMAGE }}"
150-
# git push origin refs/heads/${{ inputs.stacks-branch-name }}:refs/heads/${{ inputs.stacks-branch-name }}
153+
git commit -am "upgraded ${{inputs.service-name }} service with ${{ env.IMMAGE }}"
154+
git push origin refs/heads/${{ inputs.stacks-branch-name }}:refs/heads/${{ inputs.stacks-branch-name }}

0 commit comments

Comments
 (0)