This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
facturio/.gitlab-ci.yml

26 lines
665 B
YAML
Raw Normal View History

2024-02-16 15:55:12 +01:00
stages:
- linting
- testing
- build
- staging
- production
default:
image: python:3.12-slim
2024-08-17 21:40:27 +02:00
before_script:
- docker login ${CI_REGISTRY} -u gitlab-ci-token -p ${CI_JOB_TOKEN}
2024-08-17 21:29:19 +02:00
build_image:
stage: build
2024-08-17 21:31:11 +02:00
image: docker
services:
- docker
2024-08-17 21:29:19 +02:00
script:
2024-08-17 21:38:32 +02:00
- docker build -t ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_REF_NAME} .
- docker push ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_REF_NAME}
- |
if [[ -z "${CI_COMMIT_TAG}" ]]; then
docker tag ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_REF_NAME} ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_TAG}
docker push ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_TAG}
fi