Skip to content

Commit

Permalink
Merge pull request #2 from Oded-B/build_from_pr
Browse files Browse the repository at this point in the history
Allow publishing from PR
  • Loading branch information
Oded-B committed Jul 12, 2023
2 parents 769a26e + 8760f7d commit 78ac99b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish-on-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
issue_comment:
types: [created]

jobs:

artifacts:
name: Artifacts
if: github.event.issue.pull_request && contains(github.event.comment.body, '/publish') && github.event.comment.user.login == 'Oded-B'
uses: ./.github/workflows/artifacts.yaml
with:
publish: ${{ github.event_name == 'push' }}
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
permissions:
contents: read
packages: write
id-token: write
security-events: write

0 comments on commit 78ac99b

Please sign in to comment.