Skip to content

Commit

Permalink
build: push container image after successful PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitewarp committed Jun 25, 2024
1 parent b0539cf commit 76d53ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 76d53ae

Please sign in to comment.