Skip to content

Commit

Permalink
fix : build context
Browse files Browse the repository at this point in the history
  • Loading branch information
jason810496 committed Jan 23, 2024
1 parent 23f6ece commit 419a368
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/consumer-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 419a368

Please sign in to comment.