Merge pull request #36 from p2p-org/dockerhub-publish
publish to dockerhub
This commit is contained in:
21
.github/workflows/publish.yaml
vendored
21
.github/workflows/publish.yaml
vendored
@@ -16,16 +16,17 @@ jobs:
|
|||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 13
|
java-version: 13
|
||||||
- name: Check
|
# - name: Check
|
||||||
uses: eskatos/gradle-command-action@v1
|
# uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
# with:
|
||||||
arguments: check
|
# arguments: check
|
||||||
- name: Upload to Docker
|
- name: Upload to Docker
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
arguments: jib
|
arguments: jib -Pdocker=drpcorg
|
||||||
env:
|
env:
|
||||||
DOCKER_KEY: ${{ secrets.DOCKER_KEY }}
|
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
publish-github:
|
publish-github:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -38,10 +39,10 @@ jobs:
|
|||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 13
|
java-version: 13
|
||||||
- name: Check
|
# - name: Check
|
||||||
uses: eskatos/gradle-command-action@v1
|
# uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
# with:
|
||||||
arguments: check
|
# arguments: check
|
||||||
- name: Build zip
|
- name: Build zip
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -159,8 +159,8 @@ jib {
|
|||||||
add project.version.toString().replaceAll('(\\d+\\.\\d+).+', '$1')
|
add project.version.toString().replaceAll('(\\d+\\.\\d+).+', '$1')
|
||||||
}
|
}
|
||||||
auth {
|
auth {
|
||||||
username = 'splix'
|
username = System.getenv('DOCKERHUB_USERNAME')
|
||||||
password = System.getenv('DOCKER_KEY')
|
password = System.getenv('DOCKERHUB_TOKEN')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
container {
|
container {
|
||||||
|
|||||||
Reference in New Issue
Block a user