This repository has been archived on 2022-08-18. You can view files and clone it, but cannot push or open issues or pull requests.
4 changed files with
26 additions and
14 deletions
|
|
|
@ -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
|
|
|
|
@ -1,27 +1,23 @@
|
|
|
|
|
ARG GO_VERSION=1.17
|
|
|
|
|
ARG DEBIAN_VERSION=11
|
|
|
|
|
ARG DEBIAN_VERSION_NAME=bullseye
|
|
|
|
|
|
|
|
|
|
## Build stage ##
|
|
|
|
|
FROM --platform=${BUILDPLATFORM} docker.io/library/golang:${GO_VERSION}-${DEBIAN_VERSION_NAME} AS builder
|
|
|
|
|
|
|
|
|
|
FROM golang as builder
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
|
RUN go mod download
|
|
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o rageshake
|
|
|
|
|
RUN go build -o rageshake
|
|
|
|
|
|
|
|
|
|
## Runtime stage, debug variant ##
|
|
|
|
|
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/static-debian${DEBIAN_VERSION}:debug-nonroot AS debug
|
|
|
|
|
COPY --from=builder /build/rageshake /rageshake
|
|
|
|
|
FROM debian:bullseye as debug
|
|
|
|
|
COPY --from=builder /build/rageshake /rageshake/
|
|
|
|
|
WORKDIR /
|
|
|
|
|
EXPOSE 9110
|
|
|
|
|
ENTRYPOINT ["/rageshake"]
|
|
|
|
|
ENTRYPOINT ["/rageshake/rageshake"]
|
|
|
|
|
|
|
|
|
|
## Runtime stage ##
|
|
|
|
|
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/static-debian${DEBIAN_VERSION}:nonroot
|
|
|
|
|
COPY --from=builder /build/rageshake /rageshake
|
|
|
|
|
FROM debian:bullseye as rageshake
|
|
|
|
|
LABEL org.opencontainers.image.source https://git.batsense.net/mystiq/rageshake
|
|
|
|
|
RUN apt-get update && apt-get install -y ca-certificates
|
|
|
|
|
WORKDIR /
|
|
|
|
|
COPY --from=builder /build/rageshake /rageshake/
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
Web service which collects and serves bug reports.
|
|
|
|
|