Skip to content

Commit

Permalink
fix: add missing dockerfile secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
luigibarbato committed Mar 10, 2024
1 parent bcb5f5d commit f68a3a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG GO_VERSION=1.21

FROM alpine:${ALPINE_VERSION} AS certificator
RUN apk --update add --no-cache ca-certificates openssl git tzdata && \
update-ca-certificates
update-ca-certificates

FROM golang:${GO_VERSION}-alpine AS builder
WORKDIR /app
Expand Down Expand Up @@ -40,8 +40,12 @@ ENV UNCONDITIONAL_API_FEED_REPO_KEY=${UNCONDITIONAL_API_FEED_REPO_KEY}
ENV UNCONDITIONAL_API_LOG_ENV=${UNCONDITIONAL_API_LOG_ENV}

RUN --mount=type=secret,id=UNCONDITIONAL_API_SOURCE_CLIENT_KEY \
--mount=type=secret,id=UNCONDITIONAL_API_FEED_REPO_HOST \
--mount=type=secret,id=UNCONDITIONAL_API_FEED_REPO_INDEX \
--mount=type=secret,id=UNCONDITIONAL_API_FEED_REPO_KEY \
UNCONDITIONAL_API_SOURCE_CLIENT_KEY="$(cat /run/secrets/UNCONDITIONAL_API_SOURCE_CLIENT_KEY)" \
UNCONDITIONAL_API_FEED_REPO_HOST="$(cat /run/secrets/UNCONDITIONAL_API_FEED_REPO_HOST)" \
UNCONDITIONAL_API_FEED_REPO_INDEX="$(cat /run/secrets/UNCONDITIONAL_API_FEED_REPO_INDEX)" \
UNCONDITIONAL_API_FEED_REPO_KEY="$(cat /run/secrets/UNCONDITIONAL_API_FEED_REPO_KEY)" \
/app/main index create --name feeds

Expand Down

0 comments on commit f68a3a6

Please sign in to comment.