This commit is contained in:
commit
92aa6b341f
|
@ -1,9 +1,9 @@
|
||||||
variables:
|
variables:
|
||||||
- &golang "golang:1.19"
|
- &golang "golang:1.19"
|
||||||
- &volumes
|
- &volumes
|
||||||
- /var/www/html/artifacts/capture/deblan:/artifacts
|
- /var/www/html/artifacts/deblan/capture:/artifacts
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
test:
|
test:
|
||||||
image: *golang
|
image: *golang
|
||||||
commands:
|
commands:
|
||||||
|
@ -14,6 +14,7 @@ pipeline:
|
||||||
volumes: *volumes
|
volumes: *volumes
|
||||||
commands:
|
commands:
|
||||||
- make
|
- make
|
||||||
|
- cp build/* /artifacts
|
||||||
|
|
||||||
push_release:
|
push_release:
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.19 as builder
|
FROM golang:1.21-bullseye as builder
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
@ -7,7 +7,7 @@ RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN BUILD_DIR=/app make
|
RUN BUILD_DIR=/app make
|
||||||
|
|
||||||
FROM debian:stable-slim
|
FROM debian:bullseye-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ca-certificates
|
RUN apt-get update && apt-get install -y ca-certificates
|
||||||
COPY --from=builder /app/capture-linux-amd64 /usr/bin/capture
|
COPY --from=builder /app/capture-linux-amd64 /usr/bin/capture
|
||||||
|
|
Loading…
Reference in a new issue