Skip to content

Commit

Permalink
add git configs
Browse files Browse the repository at this point in the history
  • Loading branch information
fyInALT committed May 12, 2024
1 parent 52f0914 commit 4a39168
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ops/aggregator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ WORKDIR /usr/src/app

COPY go.mod go.sum ./

ENV GOPRIVATE=github.com/alt-research/avs-generic-aggregator
ARG XDG_CONFIG_HOME=/root/.config/
RUN \
--mount=type=secret,id=gh_hosts,target=/root/.config/gh/hosts.yml \
--mount=type=secret,id=git_config,target=/root/.gitconfig \
--mount=type=secret,id=git_credentials,target=/root/.git-credentials \
<<EOF
set -ex
go version
EOF

RUN go mod download && go mod tidy && go mod verify

COPY . .
Expand Down
11 changes: 11 additions & 0 deletions ops/operator-tool.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ WORKDIR /usr/src/app

COPY go.mod go.sum ./

ENV GOPRIVATE=github.com/alt-research/avs-generic-aggregator
ARG XDG_CONFIG_HOME=/root/.config/
RUN \
--mount=type=secret,id=gh_hosts,target=/root/.config/gh/hosts.yml \
--mount=type=secret,id=git_config,target=/root/.gitconfig \
--mount=type=secret,id=git_credentials,target=/root/.git-credentials \
<<EOF
set -ex
go version
EOF

RUN go mod download && go mod tidy && go mod verify

COPY . .
Expand Down
9 changes: 9 additions & 0 deletions ops/operator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ WORKDIR /usr/src/app
COPY go.mod go.sum ./

ENV GOPRIVATE=github.com/alt-research/avs-generic-aggregator
ARG XDG_CONFIG_HOME=/root/.config/
RUN \
--mount=type=secret,id=gh_hosts,target=/root/.config/gh/hosts.yml \
--mount=type=secret,id=git_config,target=/root/.gitconfig \
--mount=type=secret,id=git_credentials,target=/root/.git-credentials \
<<EOF
set -ex
go version
EOF

RUN go mod download && go mod tidy && go mod verify

Expand Down
15 changes: 15 additions & 0 deletions ops/proxy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@ FROM golang:1.21-bullseye as build

WORKDIR /usr/src/app

COPY go.mod go.sum ./

ENV GOPRIVATE=github.com/alt-research/avs-generic-aggregator
ARG XDG_CONFIG_HOME=/root/.config/
RUN \
--mount=type=secret,id=gh_hosts,target=/root/.config/gh/hosts.yml \
--mount=type=secret,id=git_config,target=/root/.gitconfig \
--mount=type=secret,id=git_credentials,target=/root/.git-credentials \
<<EOF
set -ex
go version
EOF

RUN go mod download && go mod tidy && go mod verify

COPY . .

WORKDIR /usr/src/app/generic-operator-proxy/cmd
Expand Down

0 comments on commit 4a39168

Please sign in to comment.