File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Deploy
2+ on :
3+ push :
4+ branches :
5+ - main
6+ workflow_dispatch :
7+ inputs :
8+ environment_name :
9+ description : Environment
10+ required : true
11+ type : choice
12+ options :
13+ - dev
14+ - stg
15+ - qa
16+ - prod
17+ jobs :
18+ deploy :
19+ uses : fun-dotto/way/.github/workflows/backend-deploy.yml@main
20+ permissions :
21+ contents : read
22+ id-token : write
23+ with :
24+ environment_name : ${{ github.event.inputs.environment_name }}
25+ secrets : inherit
Original file line number Diff line number Diff line change 1+ name : Test
2+ on :
3+ push :
4+ branches :
5+ - main
6+ pull_request :
7+ branches :
8+ - main
9+ types :
10+ - opened
11+ - ready_for_review
12+ - reopened
13+ - synchronize
14+ workflow_dispatch :
15+ jobs :
16+ test :
17+ uses : fun-dotto/way/.github/workflows/backend-test.yml@main
18+ permissions :
19+ contents : read
20+ secrets : inherit
Original file line number Diff line number Diff line change 11# Build stage
2- FROM golang:1.25.4 -alpine AS builder
2+ FROM golang:1.25.6 -alpine AS builder
33
44# Install build dependencies
55RUN apk add --no-cache git
@@ -13,27 +13,23 @@ COPY go.mod go.sum ./
1313# Download dependencies
1414RUN go mod download
1515
16- # Install Task
17- RUN go install github.com/go-task/task/v3/cmd/task@latest
18-
1916# Copy source code
2017COPY . .
2118
22- # Generate code from OpenAPI spec
23- RUN task generate
24-
2519# Build the application
2620RUN CGO_ENABLED=0 GOOS=linux go build -tags timetzdata -o ./bin/main ./cmd/server/main.go
2721
2822# Runtime stage
29- FROM alpine:3.22.2
23+ FROM alpine:3
24+
25+ ENV PORT=8080
3026
3127# Install runtime dependencies
3228RUN apk add --no-cache ca-certificates
3329
3430# Create non-root user
3531RUN addgroup -g 1000 appuser && \
36- adduser -D -u 1000 -G appuser appuser
32+ adduser -D -u 1000 -G appuser appuser
3733
3834# Set working directory
3935WORKDIR /app
@@ -51,7 +47,7 @@ RUN chown -R appuser:appuser /app
5147USER appuser
5248
5349# Expose port
54- EXPOSE 8080
50+ EXPOSE $PORT
5551
5652# Run the application
5753CMD ["/app/main" ]
Original file line number Diff line number Diff line change 11# Dotto Announcement API
22
3- [ ![ CI] ( https://github.com/fun-dotto/announcement-api/actions/workflows/ci.yaml /badge.svg )] ( https://github.com/fun-dotto/announcement-api/actions/workflows/ci.yaml )
3+ [ ![ CI] ( https://github.com/fun-dotto/announcement-api/actions/workflows/test.yml /badge.svg )] ( https://github.com/fun-dotto/announcement-api/actions/workflows/test.yml )
44
5- © ; 2025 Dotto
5+ © ; 2026 Dotto
Original file line number Diff line number Diff line change 11module github.com/fun-dotto/announcement-api
22
3- go 1.25.4
3+ go 1.25.6
44
55tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
66
Original file line number Diff line number Diff line change 11[tools ]
22"aqua:go-task/task" = " latest"
3- go = " 1.25.4 "
3+ go = " 1.25.6 "
You can’t perform that action at this time.
0 commit comments