Skip to content

Commit

Permalink
Fix docker image tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
RoanH committed Mar 17, 2022
1 parent 162c88d commit 67e44db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ hub:
script:
- docker info
- docker build -t gmark .
- docker tag gmark roanh/gmark:${VERSION:1}
- docker tag gmark roanh/gmark:${CI_COMMIT_REF_NAME:1}
- docker tag gmark roanh/gmark:latest
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker push roanh/gmark:${VERSION:1}
- docker push roanh/gmark:${CI_COMMIT_REF_NAME:1}
- docker push roanh/gmark:latest
stage: publishing
allow_failure: false
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ RUN ./gradlew :cliJar
FROM openjdk:8
LABEL maintainer="[email protected]"
WORKDIR /gMark
COPY --from=compile /gMark/build/libs/gMark-cli-SNAPSHOT.jar ./gMark.jar
COPY --from=compile /gMark/build/libs/gMark-cli.jar ./gMark.jar
ENTRYPOINT ["java", "-jar", "gMark.jar"]

0 comments on commit 67e44db

Please sign in to comment.