Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 5ec3492

Browse files
committed
Push latest to DockerHub
1 parent 4ff0f4b commit 5ec3492

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ on:
66
pull_request:
77
branches: [ master ]
88

9-
env:
10-
DOCKER_REGISTRY: docker.pkg.github.com
11-
DOCKER_PATH: salesforce/docker-phoenix-mini
12-
IMAGE_NAME: phoenix-mini
13-
149
jobs:
1510
build:
1611
runs-on: ubuntu-latest
@@ -28,15 +23,11 @@ jobs:
2823
java-version: 1.8
2924
- name: Maven package
3025
run: mvn --batch-mode package
31-
- name: Docker Login
32-
uses: azure/docker-login@v1
26+
- name: Login to DockerHub
27+
uses: docker/login-action@v1
3328
with:
34-
login-server: ${{ env.DOCKER_REGISTRY }}
35-
username: $GITHUB_ACTOR
36-
password: ${{ secrets.GITHUB_TOKEN }}
29+
username: ${{ secrets.DOCKERHUB_USERNAME }}
30+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
3731
- name: Docker Push
38-
if: github.ref == 'refs/heads/master'
3932
run: |
40-
REMOTE_IMAGE_ID=$DOCKER_REGISTRY/$DOCKER_PATH/$IMAGE_NAME:latest
41-
docker tag phoenix-mini:latest $REMOTE_IMAGE_ID
42-
docker push $REMOTE_IMAGE_ID
33+
docker push salesforce/phoenix-mini:latest

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
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).
44

5+
> [docker pull salesforce/phoenix-mini](https://hub.docker.com/r/salesforce/phoenix-mini)
6+
57
The key configurations to make the embedded server working in docker are
68
the following:
79

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
</execution>
122122
</executions>
123123
<configuration>
124-
<repository>phoenix-mini</repository>
124+
<repository>salesforce/phoenix-mini</repository>
125125
</configuration>
126126
</plugin>
127127
<plugin>

0 commit comments

Comments
 (0)