Add github action for public to docker hub and updated

This commit is contained in:
Sambo Chea 2021-03-29 14:22:00 +07:00
parent 9d6bb5bc79
commit 5116a6051f
4 changed files with 40 additions and 2 deletions

View File

@ -1,4 +1,4 @@
name: CI name: Docker CI Private
on: on:
push: push:

28
.github/workflows/docker-public.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Docker CI Public
on:
push:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_SECRET }}
-
name: Checkout
uses: actions/checkout@v2
-
name: Build and Push from Makefile
run: |
make build

View File

@ -1,4 +1,4 @@
from node:14.16.0 FROM node:14.16.0
LABEL maintainer="sombochea@cubetiqs.com" LABEL maintainer="sombochea@cubetiqs.com"
ENV ACCEPT_HIGHCHARTS_LICENSE="YES" ENV ACCEPT_HIGHCHARTS_LICENSE="YES"

10
Makefile Normal file
View File

@ -0,0 +1,10 @@
DOCKER_IMAGE=cubetiq/highcharts-export-server
build:
@echo 'Starting docker build'
docker build . -t ${DOCKER_IMAGE}
@echo 'Starting docker push'
docker push ${DOCKER_IMAGE}
.PHONY:build