use docker action with secrets
This commit is contained in:
parent
585243267b
commit
bffc9f9408
1 changed files with 10 additions and 4 deletions
14
.github/workflows/release-docker.yml
vendored
14
.github/workflows/release-docker.yml
vendored
|
@ -15,7 +15,13 @@ jobs:
|
|||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: '1.13'
|
||||
- name: Build and push release
|
||||
run: |
|
||||
./mvnw -B clean package -Pproduction
|
||||
./mvnw -B dockerfile:build dockerfile:push -Pproduction -pl acrarium
|
||||
- name: Build release
|
||||
run: ./mvnw -B clean package -Pproduction
|
||||
- name: Build image
|
||||
run: ./mvnw -B dockerfile:build -Pproduction -pl acrarium
|
||||
- name: Publish to hub
|
||||
uses: elgohr/Publish-Docker-Github-Action
|
||||
with:
|
||||
name: f43nd1r/acrarium
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
|
Loading…
Reference in a new issue