Compare commits

...
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.

8 commits

Author SHA1 Message Date
Aravinth Manivannan bd93487c2d
fix: install ca certs
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-08-18 18:14:44 +05:30
Aravinth Manivannan eaa54e466c
fix; cp bin to /rageshake/
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
rageshake stores logs and screenshot in the same directory as the binary.
Copying binary to /bin/ will, well, mess /bin/ up. Not good.
2022-08-18 17:32:57 +05:30
Aravinth Manivannan a536481248
fix: switch to using debian base images
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-08-18 17:15:22 +05:30
Aravinth Manivannan befb3780cc
fix: golang docker img
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-08-18 15:47:37 +05:30
Aravinth Manivannan 69e36736ca
debug: publish imgs without testing
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-08-18 15:46:28 +05:30
Aravinth Manivannan 5ab35a58a9
feat: build only x864 linux docker img
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-18 15:44:52 +05:30
Aravinth Manivannan 7b72715bda
feat: add woodpecker badge
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-18 14:29:08 +05:30
Aravinth Manivannan 6975c3faa1
feat: publish docker img from CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-08-18 14:28:10 +05:30
4 changed files with 26 additions and 14 deletions

15
.woodpecker.yml Normal file
View 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

View file

@ -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"]

View file

@ -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.

BIN
rageshake Executable file

Binary file not shown.