readingList/.gitlab-ci.yml
2024-06-21 00:04:52 +01:00

22 lines
577 B
YAML

workflow:
rules:
- if: '$CI_COMMIT_BRANCH == "build"'
stages:
- build
default:
image: docker
services:
- docker:dind
before_script:
- "echo $CI_REGISTRY_PASSWORD | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin"
- "docker info"
readinglistd:
stage: build
variables:
IMAGE_NAME: "${CI_REGISTRY_IMAGE}/readinglistd"
script:
- "docker build . --tag ${IMAGE_NAME}:latest --tag ${IMAGE_NAME}:${CI_COMMIT_SHORT_SHA#'v'}" # that weird thing #'v' thing strips a prefix of v
- "docker push --all-tags $IMAGE_NAME"