mroe tweaks to flows

pull/182/head
James Montemagno 2022-11-30 08:39:10 -08:00 committed by GitHub
parent 1fad3e70c0
commit f1ebc62c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -23,6 +23,8 @@ jobs:
build-pr:
if: ${{ github.event_name == 'pull_request'}}
environment:
name: staging
runs-on: ubuntu-latest
steps:
@ -38,6 +40,8 @@ jobs:
run: docker build -f ./src/Services/Podcasts/Podcast.Ingestion.Worker/Dockerfile -t ${{ env.ACR_NAME }}.azurecr.io/podcastingestionworker:${{ github.sha }} .
build-and-push:
environment:
name: staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@ -79,8 +83,7 @@ jobs:
deploy:
needs: build-and-push
environment:
name: prod
if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch') }}
name: staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -20,6 +20,7 @@ env:
jobs:
build:
if: ${{ github.event_name == 'pull_request'}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@ -44,7 +45,7 @@ jobs:
deploy:
needs: build
environment:
name: prod
name: staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -15,6 +15,7 @@ env:
jobs:
build:
if: ${{ github.event_name == 'pull_request'}}
environment:
name: staging
runs-on: ubuntu-latest