Hi Landon12,
First of all thanks for your response.
Here are the steps I have taken,
Actions taken in GITHUB
Github → repostitory settings → Webhooks → Add Webhook
Payload URL: https://api.github.com/repos/{CompanyName}/{RepostitoryName}/actions/workflows/{ActionName.yml}/dispatches
Secret: A secret string
Events: Push
When I save it shows:
Last delivery was not succesfull, invalid HTTP response 403
I tested the same url with postman and that works well.
Actions taken in POSTMAN
POST
Payload URL
HEADERS
Accept: application/vnd.github.everest-preview+json
Content-Type: application/json
BODY
{
“ref”: “develop”
}
AUTHENTICATION
I created a Github PAT for authentication
Actions taken in DOCKER HUB
Organizations → Namespace → Repostitories → {{Repository Name} → Builds → Configure Automated Builds
Source Repostory: {CompanyName} {RepositoryName}
AUTOTEST: Off
REPOSITORY LINKS: Off
BUILD RULES:
Source Type: Branch
Source: Develop
Docker Tag: latest
Dockerfile location: Dockerfile
Build Context: /
Autobuild: on
Build Caching: on
Pushing code to develop branch triggers a build as expected.
From here on I have 2 options, “BUILD ENVIRONMENT VARIABLES” and “BUILD TRIGGERS”
When adding a build trigger I have an option to give it a name for example GithubAction and thats it.
Name
Trigger Url
GithubAction
https://hub.docker.com/api/build/v1/source/241e1a20-5a65-4777-a81d-3a9584dbf32f/trigger/a4dc2a7f-0901-4547-97c3-55bf29ba6b72/call/
When I add a Webhook my only option is to give it a name and a Webhook url
Name: GithubAction
URL: Payload URL
I have no other configuration options.
It looks like dome steps don’t match with, like for example step 4 “Select Github as the trigger”
Am I missing something?