feat(deploy-stax-orchestrator): deploy stax orchestrator from serverl… #29
Workflow file for this run
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
--- | |
name: Publish to the Serverless Repository | |
concurrency: | |
group: production | |
cancel-in-progress: true | |
env: | |
TAGGED_VERSION: ${{github.ref_name}} | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
# deploy: | |
Deploy: | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
runs-on: ubuntu-latest | |
environment: innovation | |
# These permissions are needed to interact | |
# with GitHub's OIDC Token endpoint. | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pipenv | |
make install-dependencies | |
- name: Configure AWS credentials from Innovation account | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
# yamllint disable-line rule:line-length | |
role-to-assume: "${{ secrets.ROLE_ARN }}" | |
aws-region: "${{ secrets.AWS_REGION }}" | |
- name: Deploy the awesome app! | |
run: | | |
make publish-app |