Skip to content

Update almir/webhook Docker tag to v2.8.1 #8

Update almir/webhook Docker tag to v2.8.1

Update almir/webhook Docker tag to v2.8.1 #8

name: Publish Webhook Image
on:
push:
paths:
- 'webhook/Dockerfile'
jobs:
buildAndPush:
name: "Webhook - Build And Push docker images"
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Webhook
id: docker_build_webhook
uses: docker/build-push-action@v3
with:
context: webhook
file: webhook/Dockerfile
push: true
tags: ghcr.io/erebe/webhook:latest
- name: webhook Image digest
run: echo webhook ${{ steps.docker_build_webhook.outputs.digest }}
- name: Trigger deployer
run: |
payload='{ "application_name": "webhook", "image_digest": "${{ steps.docker_build.outputs.digest }}", "image_tag": "latest" }'
token='X-Webhook-Token: ${{ secrets.WEBHOOK_SECRET }}'
curl -i -X POST -H 'Content-Type: application/json' -H "${token}" -d "${payload}" https://hooks.erebe.eu/hooks/deploy