diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0eba3ad..fd43ac1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,3 +17,13 @@ jobs: image: quips tags: ${{ github.sha }} containerfiles: ./compose/django/Dockerfile + + - name: push container image + if: github.event.pull_request.merged == true + uses: redhat-actions/push-to-registry@v2 + with: + image: ${{ steps.build-image.outputs.image }} + tags: ${{ steps.build-image.outputs.tags }} + registry: ${{ secrets.REGISTRY }} + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }}