Skip to content

Commit

Permalink
Push latest to DockerHub
Browse files Browse the repository at this point in the history
  • Loading branch information
berardino committed Mar 4, 2021
1 parent 4ff0f4b commit 52a415e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
docker push salesforce/phoenix-mini:latest
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
</execution>
</executions>
<configuration>
<repository>phoenix-mini</repository>
<repository>salesforce/phoenix-mini</repository>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 52a415e

Please sign in to comment.