Skip to content

Commit

Permalink
fix: changed Dockerfile working directory (#218)
Browse files Browse the repository at this point in the history
* changed Dockerfile working directory

* removed test job in build image

* retrigger
  • Loading branch information
mfaizanse authored Sep 16, 2024
1 parent 5970cba commit 29e353e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/pull-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,3 @@ jobs:
dockerfile: Dockerfile
context: .
export-tags: true
test-image:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install jq
run: sudo apt-get install jq

- name: Extract image name from JSON
id: extract-image
run: |
echo "IMAGE_NAME=$(echo '${{ needs.build.outputs.images }}' | jq -r '.[0]')" >> $GITHUB_ENV
- name: Test image
run: ./scripts/shell/run-and-check-container.sh "$IMAGE_NAME" PR-${{ github.event.number }}-container
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM europe-docker.pkg.dev/kyma-project/prod/external/library/golang:1.23.0-alpi
ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
WORKDIR /app
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
Expand All @@ -27,7 +27,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o ma
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
COPY --from=builder /app/manager .
USER 65532:65532

ENTRYPOINT ["/manager"]
Expand Down

0 comments on commit 29e353e

Please sign in to comment.