Skip to content

Commit

Permalink
build: improve publishing docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
micaellobo committed Apr 20, 2024
1 parent 925ba03 commit 50ab84b
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 62 deletions.
110 changes: 55 additions & 55 deletions .github/workflows/docker-hub-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,37 @@ jobs:
username: 8160202
password: ${{ secrets.DOCKER_HUB_PW }}

# - name: Build and push eureka-service
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:eureka-service"
# push: true
# tags: 8160202/eureka-service:latest
# platforms: 'linux/arm64,linux/amd64'
#
# - name: Build and push api-gateway
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:api-gateway"
# push: true
# tags: 8160202/api-gateway:latest
# platforms: 'linux/arm64,linux/amd64'
#
# - name: Build and push user-service
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:user-service"
# push: true
# tags: 8160202/user-service:latest
# platforms: 'linux/arm64,linux/amd64'
#
# - name: Build and push auth-service
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:auth-service"
# push: true
# tags: 8160202/auth-service:latest
# platforms: 'linux/arm64,linux/amd64'
- name: Build and push eureka-service
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:eureka-service"
push: true
tags: 8160202/eureka-service:latest
platforms: 'linux/arm64,linux/amd64'

- name: Build and push api-gateway
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:api-gateway"
push: true
tags: 8160202/api-gateway:latest
platforms: 'linux/arm64,linux/amd64'

- name: Build and push user-service
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:user-service"
push: true
tags: 8160202/user-service:latest
platforms: 'linux/arm64,linux/amd64'

- name: Build and push auth-service
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:auth-service"
push: true
tags: 8160202/auth-service:latest
platforms: 'linux/arm64,linux/amd64'

- name: Build and push inventory-service
uses: docker/build-push-action@v4
Expand All @@ -60,27 +60,27 @@ jobs:
tags: 8160202/inventory-service:latest
platforms: 'linux/arm64,linux/amd64'

# - name: Build and push reviews-service
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:reviews-service"
# push: true
# tags: 8160202/reviews-service:latest
# platforms: 'linux/arm64,linux/amd64'
#
# - name: Build and push order-service
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:order-service"
# push: true
# tags: 8160202/order-service:latest
# platforms: 'linux/arm64,linux/amd64'
#
# - name: Build and push notification-service
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:notification-service"
# push: true
# tags: 8160202/notification-service:latest
# platforms: 'linux/arm64,linux/amd64'
#
- name: Build and push reviews-service
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:reviews-service"
push: true
tags: 8160202/reviews-service:latest
platforms: 'linux/arm64,linux/amd64'

- name: Build and push order-service
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:order-service"
push: true
tags: 8160202/order-service:latest
platforms: 'linux/arm64,linux/amd64'

- name: Build and push notification-service
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:notification-service"
push: true
tags: 8160202/notification-service:latest
platforms: 'linux/arm64,linux/amd64'

2 changes: 1 addition & 1 deletion api-gateway/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8.5-openjdk-17 AS build
COPY . /usr/app
WORKDIR /usr/app
RUN mvn clean package
RUN mvn clean install -DskipTests package

FROM openjdk:17
VOLUME /tmp
Expand Down
2 changes: 1 addition & 1 deletion auth-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8.5-openjdk-17 AS build
COPY . /usr/app
WORKDIR /usr/app
RUN mvn clean package
RUN mvn clean install -DskipTests package

FROM openjdk:17
VOLUME /tmp
Expand Down
2 changes: 1 addition & 1 deletion eureka-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8.5-openjdk-17 AS build
COPY . /usr/app
WORKDIR /usr/app
RUN mvn clean package
RUN mvn clean install -DskipTests package

FROM openjdk:17
VOLUME /tmp
Expand Down
2 changes: 1 addition & 1 deletion notification-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8.5-openjdk-17 AS build
COPY . /usr/app
WORKDIR /usr/app
RUN mvn clean package
RUN mvn clean install -DskipTests package

FROM openjdk:17
VOLUME /tmp
Expand Down
2 changes: 1 addition & 1 deletion order-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8.5-openjdk-17 AS build
COPY . /usr/app
WORKDIR /usr/app
RUN mvn clean package
RUN mvn clean install -DskipTests package

FROM openjdk:17
VOLUME /tmp
Expand Down
2 changes: 1 addition & 1 deletion reviews-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8.5-openjdk-17 AS build
COPY . /usr/app
WORKDIR /usr/app
RUN mvn clean package
RUN mvn clean install -DskipTests package

FROM openjdk:17
VOLUME /tmp
Expand Down
2 changes: 1 addition & 1 deletion user-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM maven:3.8.5-openjdk-17 AS build
COPY . /usr/app
WORKDIR /usr/app
RUN mvn clean package
RUN mvn clean install -DskipTests package

FROM openjdk:17
VOLUME /tmp
Expand Down

0 comments on commit 50ab84b

Please sign in to comment.