Compare commits

..

No commits in common. "548ede135c5878a68106d5387c1f3e3cf0fc9d2e" and "main" have entirely different histories.

4 changed files with 0 additions and 74 deletions

View File

@ -1,48 +0,0 @@
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: build
image: glang:1.17-alpine
pull: if-not-exists
environment:
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64
commands:
- env
- go build -tags timetzdata -v -o app cmd/apiserver/main.go
- name: publish
images: plugins/docker
pull: if-not-exists
settings:
repo: esinio/kimbon:apiserver
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: deploy
image: docker/compose:1.29.2
pull: if-not-exists
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- docker-compose up --detach --verbose --force-recreate --file ./docker-compose.yml
when:
event:
- promote
target:
- production
volumes:
- name: docker-sock
host:
path: /var/run/docker.sock

View File

@ -1,12 +0,0 @@
FROM alpine:3.14 as builder
RUN apk --no-cache add ca-certificates
FROM scratch as production
ENV TZ="Asia/Shanghai"
COPY ./app /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
CMD ["/app"]

View File

@ -1,11 +0,0 @@
package main
func main() {
if err := run(); err != nil {
panic(err)
}
}
func run() error {
return nil
}

3
go.mod
View File

@ -1,3 +0,0 @@
module git.esin.io/kimbon/weapp
go 1.17