Skip to content

Commit

Permalink
Trace deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
mvitale1989 committed Nov 13, 2023
1 parent 8f45a3f commit 79aca71
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
defaults:
run:
shell: bash
env:
AWS_DEFAULT_REGION: us-east-1
steps:
- name: build/checkout-repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
Expand All @@ -50,8 +52,19 @@ jobs:
path: dist/
# TODO add conditions based on branch
- name: deploy/master-branch
if: github.repository == 'mattermost/mattermost' && github.ref_name == 'master'
run: serverless deploy function -f server --stage staging"
#if: ${{ github.repository == 'mattermost/mattermost' && github.ref_name == 'master' }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.MM_MARKETPLACE_AWS_ACCESS_KEY_ID_STAGING }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.MM_MARKETPLACE_AWS_SECRET_ACCESS_KEY_STAGING }}
run: |
apt update && apt install -y --no-install-recommends awscli
aws sts get-caller-identity
#serverless deploy function -f server --stage staging"
- name: deploy/production-branch
if: github.repository == 'mattermost/mattermost' && github.ref_name == 'production'
run: serverless deploy function -f server --stage production"
#if: ${{ github.repository == 'mattermost/mattermost' && github.ref_name == 'production' }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.MM_MARKETPLACE_AWS_ACCESS_KEY_ID_PRODUCTION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.MM_MARKETPLACE_AWS_SECRET_ACCESS_KEY_PRODUCTION }}
run: |
aws sts get-caller-identity
#serverless deploy function -f server --stage production"

0 comments on commit 79aca71

Please sign in to comment.