Ver Fonte

update dockerize step

Daniel Bohry há 8 meses atrás
pai
commit
33053fb356
1 ficheiros alterados com 2 adições e 25 exclusões
  1. 2 25
      .github/workflows/buildAndRelease.yml

+ 2 - 25
.github/workflows/buildAndRelease.yml

@@ -22,29 +22,6 @@ jobs:
     name: Dockerize Application
     needs: build-and-test
     runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v1
-      - name: Set up JDK
-        uses: actions/setup-java@v3
-        with:
-          java-version: '21'
-          distribution: 'temurin'
-      - name: Build the Docker image
-        run: ./gradlew build && docker build -t dbohry/auth-service .
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKERHUB_USERNAME }}
-          password: ${{ secrets.DOCKERHUB_TOKEN }}
-      - name: Push image
-        run: docker push dbohry/auth-service
-
-  dockerize-arm:
-    name: Dockerize ARM Application
-    needs: build-and-test
-    runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
       - name: Set up JDK
@@ -61,7 +38,7 @@ jobs:
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
-      - name: Build and Push ARM Image
+      - name: Build and Push Image
         run: |
           docker buildx create --use
-          docker buildx build --platform linux/arm64 -t dbohry/auth-service:arm-latest --push .
+          docker buildx build --platform linux/amd64,linux/arm64 -t dbohry/auth-service:latest --push .