Skip to content

Commit

Permalink
refactor(deploy): fix versioning Dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrizord committed Sep 2, 2024
1 parent 56f3c8f commit b839954
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,4 @@ jobs:
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/gzgestao:latest
${{ secrets.DOCKERHUB_USERNAME }}/gzgestao:${{ env.VERSION }}
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/gzgestao:latest
cache-to: type=inline
${{ secrets.DOCKERHUB_USERNAME }}/gzgestao:${{ env.VERSION }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
FROM maven:3.9.8-eclipse-temurin-21-jammy AS build
WORKDIR /app
COPY pom.xml .
RUN mvn dependency:go-offline
RUN --mount=type=cache,target=/root/.m2 mvn dependency:go-offline
COPY src ./src
RUN mvn package -DskipTests
RUN --mount=type=cache,target=/root/.m2 mvn package -DskipTests

# Execution stage
FROM eclipse-temurin:21-jre-jammy
Expand Down

0 comments on commit b839954

Please sign in to comment.