From 274098560d311627d04fda9c2f5713ed6d1fdb6a Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 26 Mar 2021 14:14:58 +0700 Subject: [PATCH] Fixed missing file and updated build --- .github/workflows/docker.yml | 29 +++++++++++++++++++++++++++++ Dockerfile | 2 +- version.txt | 5 +++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker.yml create mode 100644 version.txt diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..5342193 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,29 @@ +# This is a basic workflow to help you get started with Actions + +name: CI +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 diff --git a/Dockerfile b/Dockerfile index 1b85d91..b50d2ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' ENV TIMEZ=Asia/Phnom_Penh RUN echo "Start building the openjdk11..." RUN mkdir -p /src/cubetiq/build -COPY lic.txt version.txt /src/cubetiq/build/ +COPY LICENSE version.txt /src/cubetiq/build/ RUN echo "Starting setting up timezone to ${TIMEZ}..." # For Alpine diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..0b52912 --- /dev/null +++ b/version.txt @@ -0,0 +1,5 @@ +os: calpine-os-linux 3.13.3 +openjdk11: jdk11u +author: sombochea +company: cubetiq solution +build: 26/03/2021 \ No newline at end of file