Build containers on PR

This commit is contained in:
Dave Gallant
2023-05-09 08:40:35 -04:00
parent d60a13f26a
commit 6659ee8278

View File

@@ -3,6 +3,7 @@ on:
push:
branches:
- main
pull_request:
jobs:
publish-backend:
@@ -38,6 +39,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Packages
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v4
with:
context: backend
@@ -78,6 +80,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Packages
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v4
with:
context: .