-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use vdelev_selfhosted as main branch and add enable_cache flags
- Loading branch information
1 parent
2fae667
commit e2ca9c4
Showing
3 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,7 @@ env: | |
PYPI_REGISTRY: "https://upload.pypi.org/legacy/" | ||
PYPI_USERNAME: "datavisyn" | ||
PYTHON_VERSION: "3.10" | ||
WORKFLOW_BRANCH: "main" | ||
WORKFLOW_BRANCH: "vdelev_selfhosted" # TODO: revert to main | ||
POSTGRES_HOSTNAME: postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }} | ||
|
||
permissions: | ||
|
@@ -136,6 +136,7 @@ jobs: | |
npm_registry: ${{ env.NPM_REGISTRY }} | ||
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} | ||
run_webpack: ${{ inputs.node_run_webpack }} | ||
enable_cache: ${{ inputs.runs_on != 'self-hosted' }} | ||
- name: Run Chromatic | ||
if: ${{ inputs.chromatic_enable }} | ||
uses: chromaui/[email protected] | ||
|
@@ -166,6 +167,7 @@ jobs: | |
with: | ||
python_version: ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }} | ||
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} | ||
enable_cache: ${{ inputs.runs_on != 'self-hosted' }} | ||
|
||
# If cypress is used, build node and python sequentially as it is avoiding the duplicate install overhead | ||
build-node-python-cypress: | ||
|
@@ -230,11 +232,13 @@ jobs: | |
npm_registry: ${{ env.NPM_REGISTRY }} | ||
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} | ||
run_webpack: false # Disable the build here and call afterwards, as otherwise the yarn run env:decrypt will fail due to a missing yarn install | ||
enable_cache: ${{ inputs.cypress_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }} | ||
- name: Build python | ||
uses: ./tmp/github-workflows/.github/actions/build-python | ||
with: | ||
python_version: ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }} | ||
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} | ||
enable_cache: ${{ inputs.cypress_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }} | ||
- name: Decrypt .env.enc and <app>/.env.enc | ||
run: | | ||
yarn run env:decrypt -pass env:ENV_PASSWORD || true | ||
|
@@ -347,11 +351,13 @@ jobs: | |
npm_registry: ${{ env.NPM_REGISTRY }} | ||
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} | ||
run_webpack: false # Disable the build here and call afterwards, as otherwise the yarn run env:decrypt will fail due to a missing yarn install | ||
enable_cache: ${{ inputs.playwright_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }} | ||
- name: Build python | ||
uses: ./tmp/github-workflows/.github/actions/build-python | ||
with: | ||
python_version: ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }} | ||
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} | ||
enable_cache: ${{ inputs.playwright_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }} | ||
- name: Decrypt .env.enc and <app>/.env.enc | ||
run: | | ||
yarn run env:decrypt -pass env:ENV_PASSWORD || true | ||
|