Skip to content

Commit

Permalink
🏗️ Rewrite all workflows with venv and remove --user flag #2565 (#2568)
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia authored Oct 15, 2024
1 parent 6be47d7 commit 8075a2a
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/DEV-studio-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ jobs:
id: modify-radix
run: |
# Install pre-requisite
python -m pip install --user ruamel.yaml
python3 -m venv venv
source venv/bin/activate
python -m pip install ruamel.yaml
python ci/upgradeEnvironment.py studio ${{ env.IMAGE_TAG_SHA }} ${{ secrets.ENV }}
git config --global user.name 'github'
git config --global user.email '[email protected]'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/PREPROD-studios-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:
id: modify-radix
run: |
# Install pre-requisite
python -m pip install --user ruamel.yaml
python3 -m venv venv
source venv/bin/activate
python -m pip install ruamel.yaml
python ci/upgradeEnvironment.py studio ${{ env.IMAGE_TAG_SHA }} ${{ secrets.ENV }}
git config --global user.name 'github'
git config --global user.email '[email protected]'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/PROD-all-studios-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ jobs:
id: modify-radix
run: |
# Install pre-requisite
python -m pip install --user ruamel.yaml
python3 -m venv venv
source venv/bin/activate
python -m pip install ruamel.yaml
python ci/promoteAllToProduction.py studio
git config --global user.name 'github'
git config --global user.email '[email protected]'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/PROD-all-webs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
id: modify-radix
run: |
# Install pre-requisite
python -m pip install --user ruamel.yaml
python3 -m venv venv
source venv/bin/activate
python -m pip install ruamel.yaml
python ci/promoteAllToProduction.py web
git config --global user.name 'github'
git config --global user.email '[email protected]'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/PROD-studios-selected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
id: modify-radix
run: |
# Install pre-requisite
python -m pip install --user ruamel.yaml
python3 -m venv venv
source venv/bin/activate
python -m pip install ruamel.yaml
python ci/promoteToProduction.py studio ${{ github.event.inputs.site }}
git config --global user.name 'github'
git config --global user.email '[email protected]'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/PROD-webs-rollback.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ jobs:
shell: bash
run: |
# Install pre-requisite
python -m pip install --user ruamel.yaml
python3 -m venv venv
source venv/bin/activate
python -m pip install ruamel.yaml
python ci/upgradeEnvironment.py web ${{ github.event.inputs.image-sha }} ${{ secrets.ENV }}
git config --global user.name 'github'
git config --global user.email '[email protected]'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/PROD-webs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
id: modify-radix
run: |
# Install pre-requisite
python -m pip install --user ruamel.yaml
python3 -m venv venv
source venv/bin/activate
python -m pip install ruamel.yaml
python ci/promoteToProduction.py web ${{ github.event.inputs.site }}
git config --global user.name 'github'
git config --global user.email '[email protected]'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/TEST-studio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ jobs:
id: modify-radix
run: |
# Install pre-requisite
python -m pip install --user ruamel.yaml
python3 -m venv venv
source venv/bin/activate
python -m pip install ruamel.yaml
python ci/upgradeEnvironment.py studio ${{ env.IMAGE_TAG_SHA }} ${{ secrets.ENV }}
git config --global user.name 'github'
git config --global user.email '[email protected]'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/TEST-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ jobs:
id: modify-radix
run: |
# Install pre-requisite
python -m pip install --user ruamel.yaml
python3 -m venv venv
source venv/bin/activate
python -m pip install ruamel.yaml
python ci/upgradeEnvironment.py web ${{ env.IMAGE_TAG_SHA }} ${{ secrets.ENV }}
git config --global user.name 'github'
git config --global user.email '[email protected]'
Expand Down

0 comments on commit 8075a2a

Please sign in to comment.