diff --git a/.github/workflows/build-agent.yaml b/.github/workflows/build-agent.yaml index f888136..e47bba7 100644 --- a/.github/workflows/build-agent.yaml +++ b/.github/workflows/build-agent.yaml @@ -9,6 +9,7 @@ on: env: IMAGE_NAME: humitifier DOCKERFILE_PATH: ./agent/Dockerfile + PATH: ./agent jobs: build-and-push: @@ -27,7 +28,7 @@ jobs: - name: Build and push main image uses: docker/build-push-action@v6 with: - context: . + context: ${{ env.PATH }} file: ${{ env.DOCKERFILE_PATH }} push: true tags: | diff --git a/.github/workflows/build-server.yaml b/.github/workflows/build-server.yaml index 5edad5f..ce193b5 100644 --- a/.github/workflows/build-server.yaml +++ b/.github/workflows/build-server.yaml @@ -9,6 +9,7 @@ on: env: IMAGE_NAME: humitifier-server DOCKERFILE_PATH: ./humitifier-server/Dockerfile + PATH: ./humitifier-server jobs: build-and-push: @@ -27,7 +28,7 @@ jobs: - name: Build and push main image uses: docker/build-push-action@v4 with: - context: . + context: ${{ env.PATH }} file: ${{ env.DOCKERFILE_PATH }} push: true tags: |