diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ec981cc..c45b7e4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,16 +42,21 @@ jobs: release: name: Create release needs: test - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - uses: neuro-inc/reuse/.github/workflows/release-service.yaml@v24.9.0 + if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) + uses: neuro-inc/reuse/.github/workflows/release-service.yaml@v24.10.0 with: image: platformregistryapi helm_charts: platform-registry deploy_dev: - name: Deploy on dev + name: Deploy needs: release - uses: neuro-inc/reuse/.github/workflows/deploy-dev.yaml@v24.9.0 + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + uses: neuro-inc/reuse/.github/workflows/deploy-service.yaml@v24.10.0 + secrets: + tf_api_token: ${{ secrets.TF_API_TOKEN }} with: - helm_charts: platform-registry - version: ${{ needs.release.outputs.version }} + environment: dev + dev_workspace: ${{ vars.DEV_TFC_WORKSPACE_JSON }} + variables: | + platform_registry_version=${{ needs.release.outputs.version }}