How to create a Auto Build project on DockerHub with GitHub

From ESS-WIKI
Jump to: navigation, search

GitHub

Project on GitHub: ADVANTECH-Corp/docker-igw-image-x86

Example: "mqtt-bus" 

Branch: mqtt-bus

0. Prepare your Dockerfile for your application''

git clone https://github.com/ADVANTECH-Corp/docker-igw-image-x86.git

git branch mqtt-bus

git checkout mqtt-bus

cp your Dockerfile into this folder

git add Dockerfile

git commit -am Dockerfile

git push -u origin mqtt-bus


Check on GitHub 

Advigw4x86 GitHub dev1.jpg

Advigw4x86 GitHub dev2.jpg

Docker hub

Create a auto build project on Docker Hub with GitHub

1.  Switch to "advigw4x86 

Advigw4x86 DockerHub GitHub dev1.jpg


2. Create a Automated Build Project

Advigw4x86 DockerHub GitHub dev2.jpg

3. Select GitHub for Auto build source

Advigw4x86 DockerHub GitHub dev3.jpg

4. Select ADVANTECH-Corp "docker-igw-image-x86" project

Advigw4x86 DockerHub GitHub dev4.jpg


Enter your Project Name (ex: "mqtt-bus") and short description

Advigw4x86 DockerHub GitHub dev5.jpg


5. Click your project to config detail setting

Advigw4x86 DockerHub GitHub dev6.jpg



6. Click Build Settings and modify the branch name "<Your Project's branch on GitHub>" => (ex: mqtt-bus) and click "Tirgger & Save Changes

Advigw4x86 DockerHub GitHub dev8.jpg