From fe337d9866db29c32e69323a377bb362f29d2eed Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 15 Feb 2023 08:39:08 +1000 Subject: [PATCH] CI: the check-commit and check-merge-request should use the ci-fairy image --- .gitlab-ci.yml | 12 ++++-------- .gitlab-ci/ci.template | 12 ++++-------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 214e3dc..3804ad1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -83,11 +83,9 @@ fail-if-fork-is-not-public: # $SRCDIR/.gitlab-ci/generate-gitlab-ci.py # check-ci-script: - image: golang:alpine + extends: + - .fdo.ci-fairy stage: prep - before_script: - - apk add python3 py-pip git - - pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates script: - ci-fairy generate-template - git diff --exit-code && exit 0 || true @@ -117,11 +115,9 @@ check-commit: # check-merge-request: - image: golang:alpine + extends: + - .fdo.ci-fairy stage: deploy - before_script: - - apk add python3 py-pip git - - pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates script: - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml artifacts: diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index a69f2fa..3537e88 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -93,11 +93,9 @@ fail-if-fork-is-not-public: # $SRCDIR/.gitlab-ci/generate-gitlab-ci.py # check-ci-script: - image: golang:alpine + extends: + - .fdo.ci-fairy stage: prep - before_script: - - apk add python3 py-pip git - - pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates script: - ci-fairy generate-template - git diff --exit-code && exit 0 || true @@ -127,11 +125,9 @@ check-commit: # check-merge-request: - image: golang:alpine + extends: + - .fdo.ci-fairy stage: deploy - before_script: - - apk add python3 py-pip git - - pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates script: - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml artifacts: