Skip to content

Commit

Permalink
fix next deploy (#1804)
Browse files Browse the repository at this point in the history
* fix next deploy

* fix atlas version
  • Loading branch information
motatoes authored Nov 10, 2024
1 parent 781848d commit 40dcf99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/next_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- develop # change to main if needed
- fix/dockerfile-next
jobs:
deploy:
name: Deploy app
Expand All @@ -13,4 +14,4 @@ jobs:
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLYIO_TOKEN }}
FLY_API_TOKEN: ${{ secrets.FLYIO_TOKEN }}
10 changes: 4 additions & 6 deletions Dockerfile_next
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@ RUN echo "Commit SHA: ${COMMIT_SHA}"
# Set the working directory
WORKDIR $GOPATH/src/github.com/diggerhq/digger

# Cache Go dependencies by copying only the go.mod and go.sum files
COPY go.mod go.sum ./
# copy the application
COPY . .
RUN go mod download

# Copy the rest of the application code
COPY . .

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

# Stage 2: Runner
FROM ubuntu:24.04-slim AS runner
ENV ATLAS_VERSION v0.16.0
FROM ubuntu:24.04 AS runner
ENV ATLAS_VERSION v0.28.0
ARG COMMIT_SHA
WORKDIR /app

Expand Down

0 comments on commit 40dcf99

Please sign in to comment.