From 1c8781f552976c899c35b552c690ef026f63fe30 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sun, 7 Mar 2021 12:52:22 +0700 Subject: [PATCH] Add ci for github action build and publish image --- .github/workflows/gradle.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..718d6b1 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,19 @@ +name: CI + +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