|
30 | 30 | type: string |
31 | 31 | required: false |
32 | 32 | default: ${{ inputs.app-name }} |
| 33 | + stacks-branch-name: |
| 34 | + type: string |
| 35 | + required: false |
| 36 | + default: ${{ inputs.app-name }} |
33 | 37 | app-name: |
34 | 38 | type: string |
35 | 39 | required: true |
@@ -102,13 +106,13 @@ jobs: |
102 | 106 | - name: Add NPM Registry |
103 | 107 | run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc |
104 | 108 |
|
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/" |
112 | 116 |
|
113 | 117 | - name: Get & build for asset |
114 | 118 | run: | |
@@ -138,13 +142,13 @@ jobs: |
138 | 142 | --file ci.Dockerfile . |
139 | 143 | docker push ${{ env.IMAGE }} |
140 | 144 |
|
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 }} |
146 | 150 |
|
147 | | - # scripts/update-image ${{ inputs.stacks-name }} ${{inputs.service-name }} ${{ env.IMAGE }} |
| 151 | + scripts/update-image ${{ inputs.stacks-name }} ${{inputs.service-name }} ${{ env.IMAGE }} |
148 | 152 |
|
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