Skip to content

Commit 581e2b0

Browse files
committed
update cd pipeline
1 parent 3d85860 commit 581e2b0

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,21 @@ jobs:
4242
release:
4343
name: Create release
4444
needs: test
45-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
46-
uses: neuro-inc/reuse/.github/workflows/release-service.yaml@v24.9.0
45+
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
46+
uses: neuro-inc/reuse/.github/workflows/release-service.yaml@v24.10.0
4747
with:
4848
image: platformregistryapi
4949
helm_charts: platform-registry
5050

5151
deploy_dev:
52-
name: Deploy on dev
52+
name: Deploy
5353
needs: release
54-
uses: neuro-inc/reuse/.github/workflows/deploy-dev.yaml@v24.9.0
54+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
55+
uses: neuro-inc/reuse/.github/workflows/deploy-service.yaml@v24.10.0
56+
secrets:
57+
tf_api_token: ${{ secrets.TF_API_TOKEN }}
5558
with:
56-
helm_charts: platform-registry
57-
version: ${{ needs.release.outputs.version }}
59+
environment: dev
60+
dev_workspace: ${{ vars.DEV_TFC_WORKSPACE_JSON }}
61+
variables: |
62+
platform_registry_version=${{ needs.release.outputs.version }}

0 commit comments

Comments
 (0)