update ogcard workflow to build and push new ECS images on PR creation
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
name: build-and-push-ogcard-aws
|
name: build-and-push-ogcard-aws
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'bskyogcard/**'
|
||||||
|
- 'Dockerfile.bskyogcard'
|
||||||
|
- '.github/workflows/build-and-push-ogcard-aws.yaml'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
|
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
|
||||||
@@ -45,7 +50,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: true
|
||||||
file: ./Dockerfile.bskyogcard
|
file: ./Dockerfile.bskyogcard
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
Reference in New Issue
Block a user