Browse Source

Add github action for public to docker hub and updated

master
Sambo Chea 1 month ago
parent
commit
5116a6051f
  1. 2
      .github/workflows/docker-private.yml
  2. 28
      .github/workflows/docker-public.yml
  3. 2
      Dockerfile
  4. 10
      Makefile

2
.github/workflows/gradle.yml → .github/workflows/docker-private.yml

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

28
.github/workflows/docker-public.yml

@ -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

2
Dockerfile

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

10
Makefile

@ -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
Loading…
Cancel
Save