File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- develop # change to main if needed
6
+ - fix/dockerfile-next
6
7
jobs :
7
8
deploy :
8
9
name : Deploy app
13
14
- uses : superfly/flyctl-actions/setup-flyctl@master
14
15
- run : flyctl deploy --remote-only
15
16
env :
16
- FLY_API_TOKEN : ${{ secrets.FLYIO_TOKEN }}
17
+ FLY_API_TOKEN : ${{ secrets.FLYIO_TOKEN }}
Original file line number Diff line number Diff line change @@ -8,19 +8,17 @@ RUN echo "Commit SHA: ${COMMIT_SHA}"
8
8
# Set the working directory
9
9
WORKDIR $GOPATH/src/github.com/diggerhq/digger
10
10
11
- # Cache Go dependencies by copying only the go.mod and go.sum files
12
- COPY go.mod go.sum ./
11
+ # copy the application
12
+ COPY . .
13
13
RUN go mod download
14
14
15
- # Copy the rest of the application code
16
- COPY . .
17
15
18
16
# Build the static binary
19
17
RUN go build -ldflags="-X 'main.Version=${COMMIT_SHA}'" -o next_exe ./next/
20
18
21
19
# Stage 2: Runner
22
- FROM ubuntu:24.04-slim AS runner
23
- ENV ATLAS_VERSION v0.16 .0
20
+ FROM ubuntu:24.04 AS runner
21
+ ENV ATLAS_VERSION v0.28 .0
24
22
ARG COMMIT_SHA
25
23
WORKDIR /app
26
24
You can’t perform that action at this time.
0 commit comments