Switch to task

This commit is contained in:
Adam Štrauch 2023-08-12 14:23:41 +02:00
parent 4af4431a44
commit 6a2eb164cf
Signed by: cx
GPG Key ID: 018304FFA8988F8D
3 changed files with 25 additions and 9 deletions

View File

@ -4,7 +4,7 @@ name: image building
steps: steps:
- name: build&push - name: build&push
image: harbor.hq.rosti.cz/library/builder:36 image: registry.kube.ceperka.net/library/builder:38
environment: environment:
# username: robot$library+droneci # username: robot$library+droneci
# password: # password:

View File

@ -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
View 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}}