mirror of
https://codeberg.org/Hyperpipe/hyperpipe-backend
synced 2024-12-06 19:26:30 +01:00
Testing docker builds
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
pipeline:
|
||||
docker:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
repo: codeberg.org/hyperpipe/hyperpipe-backend
|
||||
registry: codeberg.org
|
||||
tags: latest
|
||||
username: snematoda
|
||||
password:
|
||||
from_secret: cb_token
|
||||
when:
|
||||
branch: main
|
||||
event: ['push']
|
||||
+1
-3
@@ -1,4 +1,4 @@
|
||||
FROM golang:alpine AS build
|
||||
FROM --platform=$BUILDPLATFORM golang:alpine AS build
|
||||
|
||||
ARG proxy
|
||||
|
||||
@@ -8,8 +8,6 @@ RUN apk --no-cache add ca-certificates
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN sed -i "s/hyperpipe-proxy.onrender.com/$proxy/g" utils.go
|
||||
|
||||
RUN go mod download && \
|
||||
go build -ldflags "-s -w"
|
||||
|
||||
|
||||
@@ -5,8 +5,6 @@ services:
|
||||
image: hyperpipe-backend
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
proxy: "pipopiped.tokhmi.xyz"
|
||||
container_name: hyperpipe-backend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user