Add Gitea Actions image build and registry publication
Test and publish container images / images (push) Failing after 0s
Test and publish container images / images (push) Failing after 0s
Test Go packages in Docker, build and inspect three application images, then publish commit-specific tags. Document dedicated runner and package credentials, and provide an opt-in registry Compose overlay without automatic deployment.
This commit is contained in:
1 parent
68f7d7a571
commit
02883e404b
5 files changed
+344
-1
No files matched your search
+5
-1
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.25-alpine
|
||||
FROM golang:1.25-alpine AS source
|
||||
|
||||
|
||||
WORKDIR /src
|
||||
@@ -10,6 +10,10 @@ RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
FROM source AS test
|
||||
RUN go test ./...
|
||||
|
||||
FROM source AS runtime
|
||||
RUN go build -o /pageswiki ./cmd/pageswiki
|
||||
|
||||
EXPOSE 8081
|
||||
|
||||
Reference in new issue
Block a user