Skip to content

Commit

Permalink
cicd: remove migration
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtri6179 committed Mar 14, 2024
1 parent ede1092 commit bf3573d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ jobs:
# Run a new container from a new image
docker run -d \
--restart always \
-p 8080:8080 \
--name $(echo $IMAGE_NAME) \
$(echo $REGISTRY)/$(echo $IMAGE_NAME):$(echo $GITHUB_SHA | head -c7)
8 changes: 0 additions & 8 deletions service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,12 @@ COPY . .

RUN go build -o main main.go

RUN apk add curl
RUN curl -L https://github.com/golang-migrate/migrate/releases/download/v4.16.2/migrate.linux-arm64.tar.gz | tar xvz

# run state
FROM alpine:3.18
WORKDIR /app
COPY --from=builder /app/main .
COPY --from=builder /app/migrate ./migrate
COPY app.env .
COPY start.sh .
COPY wait-for.sh .
COPY db/migrations ./migrations

EXPOSE 8080

CMD [ "/app/main" ]
ENTRYPOINT [ "/app/start.sh" ]

0 comments on commit bf3573d

Please sign in to comment.