Skip to content

DO NOT MERGE TO MAIN: temporarily run tasks on 'migration' branch ins… #4

DO NOT MERGE TO MAIN: temporarily run tasks on 'migration' branch ins…

DO NOT MERGE TO MAIN: temporarily run tasks on 'migration' branch ins… #4

Workflow file for this run

name: deploy
on:
push:
branches: ["main", "migration"]
jobs:
check:
runs-on: ubuntu-latest
environment: check-${{matrix.environment}}
strategy:
matrix:
environment: ["staging", "firefoxci"]
env:
TASKCLUSTER_ROOT_URL: ${{vars.TASKCLUSTER_ROOT_URL}}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
- name: Install dependencies
run: pip install -r requirements/test.txt
- name: Run checks
run: tc-admin check --environment ${{matrix.environment}}
apply:
runs-on: ubuntu-latest
needs: check
environment: apply-${{matrix.environment}}
strategy:
matrix:
environment: ["staging"] # TODO Add 'firefoxci' when we're ready to switch over.
env:
TASKCLUSTER_ROOT_URL: ${{vars.TASKCLUSTER_ROOT_URL}}
TASKCLUSTER_CLIENT_ID: ${{vars.TASKCLUSTER_CLIENT_ID}}
TASKCLUSTER_ACCESS_TOKEN: ${{secrets.TASKCLUSTER_ACCESS_TOKEN}}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
- name: Install dependencies
run: pip install -r requirements/base.txt
- name: Deploy environment
run: tc-admin apply --environment ${{matrix.environment}}