1
0
Fork 0
This repository has been archived on 2025-01-13. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure-ci-container/.gitlab-ci.yml

32 lines
822 B
YAML
Raw Normal View History

2021-01-07 18:38:04 +00:00
image: quay.io/sheogorath/build-ah-engine
variables:
LANG: C.UTF-8
before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
stages:
- analyse
- build
- tag
build:
stage: build
tags:
2022-08-13 15:58:16 +00:00
- privileged
2021-01-07 18:38:04 +00:00
script:
- podman build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
tagging-master:
stage: tag
2022-08-13 15:58:16 +00:00
tags:
- privileged
2021-01-07 18:38:04 +00:00
script:
- podman pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
2021-01-07 19:16:49 +00:00
- si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE" "$(grep -e 'docker.io/library/python:' Dockerfile | sed -e 's/.*://')"
2021-01-07 18:38:04 +00:00
- podman images --format "{{.Repository}}:{{.Tag}}" "$CI_REGISTRY_IMAGE" | grep "$CI_REGISTRY_IMAGE" | xargs -L 1 podman push
only:
- master