Skip to content

Commit

Permalink
added changes to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantrakh committed Jan 29, 2025
1 parent 73ddaf7 commit 0168c75
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions deployer-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM alpine AS test_schema_creator
ARG GH_TOKEN
RUN echo "GH_TOKEN is: $GH_TOKEN" && test -n "$GH_TOKEN" || echo "❌ GH_TOKEN is empty!"

WORKDIR /app

COPY marketplace/schema.yaml .
ARG GH_TOKEN

COPY marketplace/data-test/schema.yaml .

RUN apk add --no-cache yq && \
echo "$GH_TOKEN" | tr -d '\n' > /tmp/gh_token && \
Expand All @@ -16,8 +16,8 @@ FROM marketplace.gcr.io/google/debian10 AS build
# Install tools for envsubst
RUN apt-get update && apt-get install -y --no-install-recommends gettext && rm -rf /var/lib/apt/lists/*

COPY --from=test_schema_creator /app/schema.yaml /workspace/schema.yaml
# Copy schema.yaml and preprocess it with envsubst
COPY marketplace/schema.yaml /workspace/schema.yaml
RUN envsubst < /workspace/schema.yaml > /workspace/schema.yaml.processed && \
mv /workspace/schema.yaml.processed /workspace/schema.yaml

Expand All @@ -40,8 +40,8 @@ COPY --from=build /workspace/schema.yaml /data/schema.yaml
# Copy Kubernetes manifests
COPY marketplace/manifests /data/manifest/

COPY marketplace/data-test /data-test

COPY marketplace/data-test/manifest/ /data-test/manifest/
COPY --from=test_schema_creator /app/schema.yaml /data-test/schema.yaml
COPY scripts/deploy.sh /data/deploy.sh
RUN chmod +x /data/deploy.sh

Expand Down

0 comments on commit 0168c75

Please sign in to comment.