diff --git a/.github/workflows/build-image-and-push.yaml b/.github/workflows/build-image-and-push.yaml index a5a0162e..d4006011 100644 --- a/.github/workflows/build-image-and-push.yaml +++ b/.github/workflows/build-image-and-push.yaml @@ -42,6 +42,7 @@ jobs: push: true build-args: | VERSION=${{ steps.get_version.outputs.VERSION }} + STRAPI_ACCESS_TOKEN=${{ secrets.STRAPI_ACCESS_TOKEN }} tags: | ${{ env.REGISTRY }}:latest ${{ env.REGISTRY }}:${{ steps.get_version.outputs.VERSION }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 8e49629f..bfcb4f83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,9 @@ WORKDIR /app ARG VERSION=$(VERSION) ENV VERSION=$VERSION +ARG STRAPI_ACCESS_TOKEN=$(STRAPI_ACCESS_TOKEN) +ENV STRAPI_ACCESS_TOKEN=$STRAPI_ACCESS_TOKEN + ENV NODE_ENV production ENV NEXT_TELEMETRY_DISABLED 1