diff --git a/.github/workflows/consumer-docker.yaml b/.github/workflows/consumer-docker.yaml index f17abaa..6cd8045 100644 --- a/.github/workflows/consumer-docker.yaml +++ b/.github/workflows/consumer-docker.yaml @@ -8,7 +8,8 @@ on: env: IMAGE_NAME: tsmc-hackathon-2024-consumer - DOCKER_FILE_PATH: ./backend-mock/Dockerfile + DOCKER_FILE_PATH: ./backend-mock # '.' for root directory + DOCKER_FILE_NAME: Dockerfile # change to your Dockerfile name jobs: docker: @@ -30,8 +31,8 @@ jobs: - name: Build Docker image uses: docker/build-push-action@v4 with: - context: . - file: ${{ env.DOCKER_FILE_PATH }} + context: ${{ env.DOCKER_FILE_PATH }} + file: ${{ env.DOCKER_FILE_NAME }} platforms: linux/amd64,linux/arm64 tags: docker.io/${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:latest outputs: type=oci,dest=/tmp/image.tar