Skip to content

Commit

Permalink
Merge pull request #406 from lsst-epo/k8s-workflow-update
Browse files Browse the repository at this point in the history
Workflow fix for Int deployments
  • Loading branch information
jtrouth authored Mar 14, 2024
2 parents ef6d645 + f519505 commit 0d1ab32
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:
- 'master'
tags:
- 'v*'
pull_request:
types:
- 'opened'
- 'synchronize'
- 'reopened'
- 'closed'
branches:
- 'develop'
- 'master'
# pull_request:
# types:
# - 'opened'
# - 'synchronize'
# - 'reopened'
# - 'closed'
# branches:
# - 'develop'
# - 'master'

jobs:
build:
Expand All @@ -36,12 +36,12 @@ jobs:
id: deploy-info
run: |
# Determine environment to deploy to
if ${{ github.ref == 'master' || github.base_ref == 'master'}}; then
environment_name="int"
credentials_json='${{ secrets.SKYVIEWER_INT_SERVICE_ACCOUNT }}'
elif ${{ github.ref_type == 'tag'}}; then
if ${{ github.ref_type == 'tag'}}; then
environment_name="prod"
credentials_json='${{ secrets.PIPELINE_EPO_PROD_PROJECT }}'
elif ${{ contains(github.ref, 'master') || contains(github.base_ref, 'master') }}; then
environment_name="int"
credentials_json='${{ secrets.SKYVIEWER_INT_SERVICE_ACCOUNT }}'
else
environment_name="dev"
credentials_json='${{ secrets.DEV_SA_KEY }}'
Expand Down

0 comments on commit 0d1ab32

Please sign in to comment.