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
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -4,11 +4,14 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- action-test
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_REGISTRY: r.evannregnault.dev
|
DOCKER_REGISTRY: r.evannregnault.dev
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
PORTAINER_API_KEY: ${{ secrets.PORTAINER_API_KEY }}
|
||||||
|
PORTAINER_API_WEBHOOK: ${{ secrets.PORTAINER_API_WEBHOOK }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_push:
|
build_and_push:
|
||||||
|
@ -47,4 +50,11 @@ jobs:
|
||||||
${{ env.DOCKER_REGISTRY }}/obsessed-yanqing:latest
|
${{ env.DOCKER_REGISTRY }}/obsessed-yanqing:latest
|
||||||
${{ env.DOCKER_REGISTRY }}/obsessed-yanqing:${{ env.VERSION }}
|
${{ env.DOCKER_REGISTRY }}/obsessed-yanqing:${{ env.VERSION }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
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