1
0
Fork 0

ci: add .gitlab-ci.yml

This commit is contained in:
Vojtěch Mareš 2024-05-03 21:16:27 +02:00
parent ab513af9b9
commit 2acfb39ca5
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

17
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,17 @@
default:
image: docker:git
stages:
- build
build:
stage: build
variables:
IMAGE: $CI_REGISTRY_IMAGE
TAG: $CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
before_script:
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
- docker info
script:
- docker build -t $IMAGE:$TAG .
- docker push $IMAGE:$TAG