Testing docker builds

This commit is contained in:
Shiny Nematoda
2022-12-13 07:13:37 +00:00
parent c391a425be
commit f1fa3f93bf
4 changed files with 16 additions and 5 deletions
+14
View File
@@ -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
View File
@@ -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"
-2
View File
@@ -5,8 +5,6 @@ services:
image: hyperpipe-backend
build:
context: .
args:
proxy: "pipopiped.tokhmi.xyz"
container_name: hyperpipe-backend
restart: unless-stopped
ports:
+1
View File
@@ -0,0 +1 @@
2022/12/13 12:42:55 Micro started