Compare commits

...

3 Commits

5 changed files with 61 additions and 2 deletions

View File

@@ -8,4 +8,6 @@ scripts
exported.png
LICENSE
README.md
README.md
.github

19
.github/workflows/docker-private.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Docker CI Private
on:
push:
branches:
- master
jobs:
build:
name: Build and Publish Docker Image
runs-on: ubuntu-latest
env:
REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
steps:
- uses: actions/checkout@v1
- name: Sign-in to Private Registry "${REGISTRY}"
run: docker login $REGISTRY -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Building Docker Image
run: /bin/bash scripts/build.sh

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