Skip to content

Commit

Permalink
Enable image building in pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed May 12, 2024
1 parent efb3916 commit 9f54dd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build and release images

on:
push:
branches:
- main
on: push

concurrency: build-${{ github.sha }}

jobs:
Expand All @@ -28,13 +26,15 @@ jobs:
docker tag ghcr.io/quiltmc/mongodb-s3-backup:latest ghcr.io/quiltmc/mongodb-s3-backup:${{ steps.sha_tag.outputs.tag }}
- name: Login to Github Container Registry
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push images to the registry
if: github.ref == 'refs/heads/main'
run: |
docker push ghcr.io/quiltmc/postgresql-s3-backup:latest
docker push ghcr.io/quiltmc/postgresql-s3-backup:${{ steps.sha_tag.outputs.tag }}
Expand Down

0 comments on commit 9f54dd2

Please sign in to comment.