Skip to content

Commit 5c97411

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

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/release-flask.yml

Lines changed: 14 additions & 10 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
@@ -107,8 +111,8 @@ jobs:
107111
GH_PAT: ${{ secrets.GH_TOKEN }}
108112
GIT_TERMINAL_PROMPT: 0
109113
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/"
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 git@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)