Skip to content

Commit 40dcf99

Browse files
authored
fix next deploy (#1804)
* fix next deploy * fix atlas version
1 parent 781848d commit 40dcf99

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/next_deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- develop # change to main if needed
6+
- fix/dockerfile-next
67
jobs:
78
deploy:
89
name: Deploy app
@@ -13,4 +14,4 @@ jobs:
1314
- uses: superfly/flyctl-actions/setup-flyctl@master
1415
- run: flyctl deploy --remote-only
1516
env:
16-
FLY_API_TOKEN: ${{ secrets.FLYIO_TOKEN }}
17+
FLY_API_TOKEN: ${{ secrets.FLYIO_TOKEN }}

Dockerfile_next

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@ RUN echo "Commit SHA: ${COMMIT_SHA}"
88
# Set the working directory
99
WORKDIR $GOPATH/src/github.com/diggerhq/digger
1010

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 . .
1313
RUN go mod download
1414

15-
# Copy the rest of the application code
16-
COPY . .
1715

1816
# Build the static binary
1917
RUN go build -ldflags="-X 'main.Version=${COMMIT_SHA}'" -o next_exe ./next/
2018

2119
# 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
2422
ARG COMMIT_SHA
2523
WORKDIR /app
2624

0 commit comments

Comments
 (0)