Skip to content

Commit

Permalink
Update dockerpublish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wlanboy authored Mar 21, 2021
1 parent 984acd7 commit 9018939
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ jobs:
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml -DskipTests=true

- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
env:
JAR_FILE: ./target/mirrorservice-0.1.1-SNAPSHOT.jar
with:
name: wlanboy/mirrorservice
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest"
DOCKER_USER: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build -t wlanboy/mirrorservice:latest . --build-arg JAR_FILE=./target/mirrorservice-0.1.1-SNAPSHOT.jar
- name: Docker Push
run: docker push wlanboy/mirrorservice:latest

0 comments on commit 9018939

Please sign in to comment.