Compare commits
8 commits
neilalexan
...
master
Author | SHA1 | Date | |
---|---|---|---|
Aravinth Manivannan | bd93487c2d | ||
Aravinth Manivannan | eaa54e466c | ||
Aravinth Manivannan | a536481248 | ||
Aravinth Manivannan | befb3780cc | ||
Aravinth Manivannan | 69e36736ca | ||
Aravinth Manivannan | 5ab35a58a9 | ||
Aravinth Manivannan | 7b72715bda | ||
Aravinth Manivannan | 6975c3faa1 |
15
.woodpecker.yml
Normal file
15
.woodpecker.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
pipeline:
|
||||||
|
build-test:
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- go build
|
||||||
|
- go test
|
||||||
|
|
||||||
|
publish:
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username: realaravinth
|
||||||
|
password:
|
||||||
|
from_secret: DOCKER_TOKEN
|
||||||
|
repo: realaravinth/rageshake
|
||||||
|
tags: latest
|
24
Dockerfile
24
Dockerfile
|
@ -1,27 +1,23 @@
|
||||||
ARG GO_VERSION=1.17
|
|
||||||
ARG DEBIAN_VERSION=11
|
|
||||||
ARG DEBIAN_VERSION_NAME=bullseye
|
|
||||||
|
|
||||||
## Build stage ##
|
## Build stage ##
|
||||||
FROM --platform=${BUILDPLATFORM} docker.io/library/golang:${GO_VERSION}-${DEBIAN_VERSION_NAME} AS builder
|
FROM golang as builder
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o rageshake
|
RUN go build -o rageshake
|
||||||
|
|
||||||
## Runtime stage, debug variant ##
|
## Runtime stage, debug variant ##
|
||||||
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/static-debian${DEBIAN_VERSION}:debug-nonroot AS debug
|
FROM debian:bullseye as debug
|
||||||
COPY --from=builder /build/rageshake /rageshake
|
COPY --from=builder /build/rageshake /rageshake/
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
EXPOSE 9110
|
EXPOSE 9110
|
||||||
ENTRYPOINT ["/rageshake"]
|
ENTRYPOINT ["/rageshake/rageshake"]
|
||||||
|
|
||||||
## Runtime stage ##
|
## Runtime stage ##
|
||||||
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/static-debian${DEBIAN_VERSION}:nonroot
|
FROM debian:bullseye as rageshake
|
||||||
COPY --from=builder /build/rageshake /rageshake
|
LABEL org.opencontainers.image.source https://git.batsense.net/mystiq/rageshake
|
||||||
|
RUN apt-get update && apt-get install -y ca-certificates
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
COPY --from=builder /build/rageshake /rageshake/
|
||||||
EXPOSE 9110
|
EXPOSE 9110
|
||||||
ENTRYPOINT ["/rageshake"]
|
ENTRYPOINT ["/rageshake/rageshake"]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
WOODPECKER: [![status-badge](https://ci.batsense.net/api/badges/mystiq/rageshake/status.svg)](https://ci.batsense.net/mystiq/rageshake)
|
||||||
# rageshake [![Build status](https://badge.buildkite.com/76a4362a20b12dcd589f9308a905ffcc537278b9c363c0b5f1.svg?branch=master)](https://buildkite.com/matrix-dot-org/rageshake)
|
# rageshake [![Build status](https://badge.buildkite.com/76a4362a20b12dcd589f9308a905ffcc537278b9c363c0b5f1.svg?branch=master)](https://buildkite.com/matrix-dot-org/rageshake)
|
||||||
|
|
||||||
Web service which collects and serves bug reports.
|
Web service which collects and serves bug reports.
|
||||||
|
|
Reference in a new issue