initial testing
This commit is contained in:
parent
8978817634
commit
31a225a3dd
26
.woodpecker.yml
Normal file
26
.woodpecker.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
when:
|
||||||
|
event: [push, pull_request]
|
||||||
|
image: golang:1.19.3-alpine
|
||||||
|
commands:
|
||||||
|
- go mod download
|
||||||
|
- go build .
|
||||||
|
dockerize:
|
||||||
|
when:
|
||||||
|
event: [push]
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_user
|
||||||
|
password:
|
||||||
|
from_secret: docker_passwd
|
||||||
|
# password = key or actual password
|
||||||
|
auto_tag: true
|
||||||
|
repo: odyssey/Gothub
|
||||||
|
when:
|
||||||
|
branch: [dev]
|
||||||
|
auto_tag_suffix: dev
|
||||||
|
|
||||||
|
|
||||||
|
branches: main
|
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM golang:1.19.3-alpine
|
||||||
|
WORKDIR /gothub
|
||||||
|
COPY . .
|
||||||
|
RUN go mod download
|
||||||
|
RUN go build .
|
||||||
|
CMD ["/bin/sh", "-c", "./gothub"]
|
||||||
|
EXPOSE 3000
|
Loading…
Reference in New Issue
Block a user