Test Webhook auto-deploy
This commit is contained in:
parent
6501e4dab3
commit
7eed6660ae
1 changed files with 11 additions and 0 deletions
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
|
@ -4,17 +4,28 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- master
|
||||
- action-test
|
||||
|
||||
env:
|
||||
DOCKER_REGISTRY: r.evannregnault.dev
|
||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
PORTAINER_API_KEY: ${{ secrets.PORTAINER_API_KEY }}
|
||||
PORTAINER_API_WEBHOOK: ${{ secrets.PORTAINER_API_WEBHOOK }}
|
||||
|
||||
jobs:
|
||||
build_and_push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: HTTP Request Action
|
||||
uses: fjogeleit/http-request-action@v1.14.1
|
||||
with:
|
||||
url: ${{ env.PORTAINER_API_WEBHOOK }}
|
||||
method: 'POST'
|
||||
customHeaders: '{"X-API-Key": "' + ${{secrets.PORTAINER_API_KEY}} + '"}'
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
|
|
Loading…
Reference in a new issue