From 64482e11fe1361b4ce6732583a45f9926e181483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lindvar=20L=C3=A6gran?= Date: Fri, 28 Jun 2024 12:20:43 +0200 Subject: [PATCH] Update maven-make-docker.yml --- .github/workflows/maven-make-docker.yml | 27 ++++++++++++------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/maven-make-docker.yml b/.github/workflows/maven-make-docker.yml index 8956290..46891a9 100644 --- a/.github/workflows/maven-make-docker.yml +++ b/.github/workflows/maven-make-docker.yml @@ -47,24 +47,23 @@ jobs: "password": "${{ secrets.PUBLIC_SCHEMA_TOKEN }}" }] - #- name: Build, test and package - # run: ./mvnw -B clean test compile + - name: Build, test and package + run: ./mvnw -B clean test compile - uses: docker/setup-buildx-action@v3.3.0 id: buildx with: install: true - #- name: Docker ${{inputs.DOCKER_REGISTRY}}/${{inputs.IMAGE_NAME}}:${{ inputs.IMAGE_TAG }} - # run: | - # cd das-producer - # docker buildx build --platform linux/amd64,linux/arm64 . -f das-producer/Dockerfile -t ${{inputs.DOCKER_REGISTRY}}/${{inputs.IMAGE_NAME}}:${{ inputs.IMAGE_TAG }} --push + - name: Docker ${{inputs.DOCKER_REGISTRY}}/${{inputs.IMAGE_NAME}}:${{ inputs.IMAGE_TAG }} + run: | + docker buildx build --platform linux/amd64,linux/arm64 . -f das-producer/Dockerfile -t ${{inputs.DOCKER_REGISTRY}}/${{inputs.IMAGE_NAME}}:${{ inputs.IMAGE_TAG }} --push - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - file: das-producer/Dockerfile - platforms: linux/amd64,linux/arm64 - push: true - tags: ${{inputs.DOCKER_REGISTRY}}/${{inputs.IMAGE_NAME}}:${{ inputs.IMAGE_TAG }} + #- name: Build and push + # uses: docker/build-push-action@v6 + # with: + # context: . + # file: das-producer/Dockerfile + # platforms: linux/amd64,linux/arm64 + # push: true + # tags: ${{inputs.DOCKER_REGISTRY}}/${{inputs.IMAGE_NAME}}:${{ inputs.IMAGE_TAG }}