4 Commits

Author SHA1 Message Date
b53357aad7 Resolve issue with PSN names 2020-10-03 16:42:21 -04:00
fee92259b1 Add distro to build repo stage, move docker up 2020-08-16 18:35:54 -04:00
c964c73824 Increment version 2020-08-16 18:31:45 -04:00
c2882857a4 Build docker image 2020-08-16 18:25:12 -04:00
5 changed files with 29 additions and 3 deletions

View File

@ -43,6 +43,17 @@ steps:
environment:
PLUGIN_API_KEY:
from_secret: gitea_token
- name: docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: registry.meow.tf/ow-api/ow-api
registry: registry.meow.tf
tags:
- latest
- name: repo
image: tystuyfzand/drone-deb-simple
volumes:
@ -53,8 +64,8 @@ steps:
from_secret: upload_url
key:
from_secret: upload_key
distro: stable
files: [ '/build/*/owapi_*.deb' ]
volumes:
- name: build
temp: {}

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM golang:alpine AS builder
ADD . /build
RUN cd /build && go build -o ow-api
FROM golang:alpine
COPY --from=builder /build/ow-api /usr/bin/ow-api
CMD [ "/usr/bin/ow-api" ]

4
go.mod
View File

@ -2,6 +2,8 @@ module git.meow.tf/ow-api/ow-api
go 1.12
replace s32x.com/ovrstat => github.com/tystuyfzand/ovrstat v0.0.0-20201003203341-5f1ad8502a8f
require (
github.com/PuerkitoBio/goquery v1.5.1-0.20190109230704-3dcf72e6c17f
github.com/bluele/gcache v0.0.0-20190518031135-bc40bd653833
@ -12,5 +14,5 @@ require (
github.com/rs/cors v1.7.0
github.com/stoewer/go-strcase v1.2.0
golang.org/x/net v0.0.0-20190923162816-aa69164e4478
s32x.com/ovrstat v0.0.0-20200131231416-4cb42edd331d
s32x.com/ovrstat v0.0.0-20201003203341-5f1ad8502a8f
)

2
go.sum
View File

@ -70,6 +70,8 @@ github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoH
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/tystuyfzand/ovrstat v0.0.0-20201003203341-5f1ad8502a8f h1:vjYPeN0jt5TJ1vP4teWyTLGbkufQoPi0bhYE9wzg/4w=
github.com/tystuyfzand/ovrstat v0.0.0-20201003203341-5f1ad8502a8f/go.mod h1:UzsLSEoY8B4FByz4e+5GGKebJio+H+axo3RxLr7d7Mw=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasttemplate v1.0.1 h1:tY9CJiPnMXf1ERmG2EyK7gNUd+c6RKGD0IfU8WdUSz8=

View File

@ -21,7 +21,7 @@ import (
)
const (
Version = "2.4.1"
Version = "2.4.3"
OpAdd = "add"
OpRemove = "remove"