Merge branch 'action-test'
# Conflicts: # .github/workflows/main.yml
This commit is contained in:
commit
9205e0b7ff
1 changed files with 11 additions and 1 deletions
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -4,11 +4,14 @@ 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:
|
||||
|
@ -48,3 +51,10 @@ jobs:
|
|||
${{ env.DOCKER_REGISTRY }}/obsessed-yanqing:${{ env.VERSION }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Deploy to production
|
||||
uses: fjogeleit/http-request-action@v1.14.1
|
||||
with:
|
||||
url: ${{ env.PORTAINER_API_WEBHOOK }}
|
||||
method: 'POST'
|
||||
customHeaders: ${{ env.PORTAINER_API_KEY }}
|
Loading…
Reference in a new issue