diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml new file mode 100644 index 00000000..f0825f89 --- /dev/null +++ b/.github/workflows/comment.yml @@ -0,0 +1,29 @@ +name: Docker Image CD +on: pull_request + +jobs: + example_comment_pr: + runs-on: ubuntu-latest + name: Commentary + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Comment PR + uses: authelia/actions-comment-pull-request@master + with: + message: '# Containers + + These changes are published as containers for testing at one of the following locations: + + #### Local Branch + + * `docker pull authelia/authelia:${{ github.head_ref }}` + + #### Pull Request + + * `docker pull authelia/authelia:PR${{ github.event.pull_request.number }}` + + + Pull Requests require approval from an Authelia team member to deploy.' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/prcomments.md b/.github/workflows/prcomments.md deleted file mode 100644 index e70f41bc..00000000 --- a/.github/workflows/prcomments.md +++ /dev/null @@ -1,11 +0,0 @@ -# Containers - -These changes can be tested with Docker at the following location: - -#### Local Branch -* docker pull authelia/authelia:{branch_name} - -#### Public Repo PR -* docker pull authelia/authelia:PR{pull_id} - -Public Repo PR's will need to be approved by team member prior to it being deployed in the pipeline. \ No newline at end of file diff --git a/.github/workflows/prcomments.yml b/.github/workflows/prcomments.yml deleted file mode 100644 index c5173ffa..00000000 --- a/.github/workflows/prcomments.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Add container pull commands -on: pull_request -jobs: - comment: - name: Add container pull commands - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: harupy/comment-on-pr@v0.1.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - filename: prcomments.md \ No newline at end of file