1
0
Fork 0
This repository has been archived on 2025-08-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-backoffice-v2-api/.gitlab-ci.yml
Vojtech Mares 38e1389976
ci: build and push docker image
Signed-off-by: Vojtech Mares <iam@vojtechmares.com>
2024-01-02 19:13:31 +01:00

18 lines
385 B
YAML

default:
image: ubuntu:22.04
stages:
- build
- deploy
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