initial testing

This commit is contained in:
Midou36O 2022-11-29 23:04:15 +01:00
parent 8978817634
commit 31a225a3dd
Signed by: midou
GPG Key ID: 08063D5407090BC2
2 changed files with 33 additions and 0 deletions

26
.woodpecker.yml Normal file
View 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
View 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