From 04b32a360d7e1d73e9039686d177190d25d4a464 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Thu, 7 Jan 2021 18:38:04 +0000 Subject: [PATCH] Initial code --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ Dockerfile | 3 +++ renovate.json | 10 ++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 Dockerfile create mode 100644 renovate.json diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d8f5f9b --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3a1a634 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM docker.io/library/python:3.9-slim + +RUN pip install ansible-lint diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..cdb634e --- /dev/null +++ b/renovate.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + "docker:enableMajor" + ], + "prConcurrentLimit": 5, + "automerge": true, + "gitLabAutomerge": true +}