Skip to content

Commit

Permalink
ci(webui): better handling of turbo token in docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
bambanah committed Oct 4, 2024
1 parent f167c9e commit 4d11d02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
HUSKY: 0
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
PLATFORMS: linux/amd64,linux/arm64
Expand Down Expand Up @@ -70,5 +68,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
TURBO_TOKEN=${{ env.TURBO_TOKEN }}
TURBO_TEAM=${{ env.TURBO_TEAM }}
TURBO_TOKEN=${{ secrets.TURBO_TOKEN }}
TURBO_TEAM=${{ vars.TURBO_TEAM }}
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ FROM node:20-alpine AS base
ARG TURBO_TEAM
ENV TURBO_TEAM=$TURBO_TEAM

ARG TURBO_TOKEN
ENV TURBO_TOKEN=$TURBO_TOKEN
RUN --mount=type=secret,id=TURBO_TOKEN,env=TURBO_TOKEN

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
Expand Down

0 comments on commit 4d11d02

Please sign in to comment.