Skip to content

Commit

Permalink
remove github tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Lombardi committed Jan 12, 2024
1 parent 186d44b commit 4853aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion docker/Dockerfile.beam
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ WORKDIR /workspace
RUN apt install -y libfuse3-dev && \
go install github.com/cosmtrek/air@latest

ENV GOPRIVATE=github.com/beam-cloud/*
COPY go.mod go.sum ./
RUN go mod download && go mod verify

Expand Down
5 changes: 2 additions & 3 deletions docker/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG BASE_STAGE=dev

FROM golang:1.21-bullseye AS golang

RUN --mount=type=secret,id=github-token,required=true <<EOT
RUN <<EOT
set -eux
apt-get update
apt-get install -y --no-install-recommends curl git
Expand Down Expand Up @@ -57,8 +57,7 @@ COPY go.mod go.sum ./
RUN go mod download

COPY . .
RUN GOPRIVATE=github.com/beam-cloud/* \
go build -o /usr/local/bin/worker ./cmd/worker/main.go
RUN go build -o /usr/local/bin/worker ./cmd/worker/main.go


# NVIDIA CUDA - Final Stage
Expand Down

0 comments on commit 4853aa5

Please sign in to comment.