From 52a415e291bcf733296ac61e09f0423d318524aa Mon Sep 17 00:00:00 2001 From: berardino Date: Wed, 3 Mar 2021 19:19:03 -0800 Subject: [PATCH] Push latest to DockerHub --- .github/workflows/build.yaml | 18 +++++------------- README.md | 2 ++ pom.xml | 2 +- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 19abea5..ba81f8c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,11 +6,6 @@ on: pull_request: branches: [ master ] -env: - DOCKER_REGISTRY: docker.pkg.github.com - DOCKER_PATH: salesforce/docker-phoenix-mini - IMAGE_NAME: phoenix-mini - jobs: build: runs-on: ubuntu-latest @@ -28,15 +23,12 @@ jobs: java-version: 1.8 - name: Maven package run: mvn --batch-mode package - - name: Docker Login - uses: azure/docker-login@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 with: - login-server: ${{ env.DOCKER_REGISTRY }} - username: $GITHUB_ACTOR - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Docker Push if: github.ref == 'refs/heads/master' run: | - REMOTE_IMAGE_ID=$DOCKER_REGISTRY/$DOCKER_PATH/$IMAGE_NAME:latest - docker tag phoenix-mini:latest $REMOTE_IMAGE_ID - docker push $REMOTE_IMAGE_ID \ No newline at end of file + docker push salesforce/phoenix-mini:latest \ No newline at end of file diff --git a/README.md b/README.md index 68272aa..452b6bd 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ A mini [Apache Phoenix](https://phoenix.apache.org/) cluster for local development and testing based on the official [HBaseTestingUtility](https://github.com/apache/hbase/blob/master/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java). +> [docker pull salesforce/phoenix-mini](https://hub.docker.com/r/salesforce/phoenix-mini) + The key configurations to make the embedded server working in docker are the following: diff --git a/pom.xml b/pom.xml index a192eea..ebbcead 100644 --- a/pom.xml +++ b/pom.xml @@ -121,7 +121,7 @@ - phoenix-mini + salesforce/phoenix-mini