1
0
Fork 0

Initial code

This commit is contained in:
Saibotk 2021-01-07 18:38:04 +00:00
parent 003b318122
commit 04b32a360d
3 changed files with 42 additions and 0 deletions

29
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,29 @@
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:
- dind
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
script:
- podman pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
- si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE" "$(grep -e 'FROM docker.io/gitlab/gitlab-runner:v' Dockerfile | sed -e 's/.*:v//')"
- podman images --format "{{.Repository}}:{{.Tag}}" "$CI_REGISTRY_IMAGE" | grep "$CI_REGISTRY_IMAGE" | xargs -L 1 podman push
only:
- master

3
Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM docker.io/library/python:3.9-slim
RUN pip install ansible-lint

10
renovate.json Normal file
View file

@ -0,0 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"docker:enableMajor"
],
"prConcurrentLimit": 5,
"automerge": true,
"gitLabAutomerge": true
}