23 lines
423 B
YAML
23 lines
423 B
YAML
|
steps:
|
||
|
- name: build
|
||
|
image: golang:1.23
|
||
|
commands:
|
||
|
- go test ./...
|
||
|
- go build ./
|
||
|
- name: docker
|
||
|
image: plugins/docker
|
||
|
depends_on: [ build ]
|
||
|
settings:
|
||
|
username: kekskurse
|
||
|
password:
|
||
|
from_secret: docker
|
||
|
repo: kekskurse/minimock
|
||
|
dockerfile: Dockerfile
|
||
|
tags:
|
||
|
- latest
|
||
|
- ${CI_COMMIT_SHA}
|
||
|
when:
|
||
|
event: push
|
||
|
branch: [main]
|
||
|
|