Skip to content

Commit

Permalink
fix: deploy to stacks enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
T0ha committed Oct 23, 2024
1 parent b5f7317 commit 30a1017
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/release-flask.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ on:
type: string
required: false
default: ${{ inputs.app-name }}
stacks-branch-name:
type: string
required: false
default: ${{ inputs.app-name }}
app-name:
type: string
required: true
Expand Down Expand Up @@ -102,13 +106,13 @@ jobs:
- name: Add NPM Registry
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: Auhtorize github.com
env:
GH_PAT: ${{ secrets.GH_TOKEN }}
GIT_TERMINAL_PROMPT: 0
run: |
git config --global --replace-all url."https://${GH_PAT}@github.com/".insteadOf git@github.com:
git config --global --add url."https://${GH_PAT}@github.com/".insteadOf "https://github.com/"
- name: Auhtorize github.com
env:
GH_PAT: ${{ secrets.GH_TOKEN }}
GIT_TERMINAL_PROMPT: 0
run: |
git config --global --replace-all url."https://${GH_PAT}@github.com/".insteadOf git@github.com:
# git config --global --add url."https://${GH_PAT}@github.com/".insteadOf "https://github.com/"

- name: Get & build for asset
run: |
Expand Down Expand Up @@ -138,13 +142,13 @@ jobs:
--file ci.Dockerfile .
docker push ${{ env.IMAGE }}
# - name: Deploy to stacks
# run: |
# git clone git@github.com:coingaming/${{ inputs.stacks-repo }}
# cd ${{ inputs.stacks-repo }}
# git checkout ${{ inputs.stacks-branch-name }}
- name: Deploy to stacks
run: |
git clone git@github.com:coingaming/${{ inputs.stacks-repo }}
cd ${{ inputs.stacks-repo }}
git checkout ${{ inputs.stacks-branch-name }}
# scripts/update-image ${{ inputs.stacks-name }} ${{inputs.service-name }} ${{ env.IMAGE }}
scripts/update-image ${{ inputs.stacks-name }} ${{inputs.service-name }} ${{ env.IMAGE }}
# git commit -am "upgraded ${{inputs.service-name }} service with ${{ env.IMMAGE }}"
# git push origin refs/heads/${{ inputs.stacks-branch-name }}:refs/heads/${{ inputs.stacks-branch-name }}
git commit -am "upgraded ${{inputs.service-name }} service with ${{ env.IMMAGE }}"
git push origin refs/heads/${{ inputs.stacks-branch-name }}:refs/heads/${{ inputs.stacks-branch-name }}

0 comments on commit 30a1017

Please sign in to comment.