steps:
- name: build
image: golang:1.23
commands:
- CGO_ENABLED=0 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]