Switch to task
This commit is contained in:
parent
4af4431a44
commit
6a2eb164cf
@ -4,7 +4,7 @@ name: image building
|
||||
|
||||
steps:
|
||||
- name: build&push
|
||||
image: harbor.hq.rosti.cz/library/builder:36
|
||||
image: registry.kube.ceperka.net/library/builder:38
|
||||
environment:
|
||||
# username: robot$library+droneci
|
||||
# password:
|
||||
|
8
Makefile
8
Makefile
@ -1,8 +0,0 @@
|
||||
REPO=harbor.hq.rosti.cz/library/builder
|
||||
VERSION=38
|
||||
|
||||
build:
|
||||
docker build -t ${REPO}:${VERSION} .
|
||||
|
||||
push:
|
||||
docker push ${REPO}:${VERSION}
|
24
Taskfile.yml
Normal file
24
Taskfile.yml
Normal file
@ -0,0 +1,24 @@
|
||||
# https://taskfile.dev
|
||||
|
||||
version: '3'
|
||||
|
||||
vars:
|
||||
REPO: registry.kube.ceperka.net/library/builder:38
|
||||
VERSION: 38
|
||||
|
||||
tasks:
|
||||
default:
|
||||
deps:
|
||||
- build
|
||||
|
||||
build:
|
||||
cmds:
|
||||
- docker build -t {{.REPO}}:{{.VERSION}} .
|
||||
|
||||
push:
|
||||
cmds:
|
||||
- docker push {{.REPO}}:{{.VERSION}}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user