qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, "Alex Bennée" <alex.bennee@linaro.org>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Thomas Huth" <thuth@redhat.com>,
	"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
	"Beraldo Leal" <bleal@redhat.com>
Subject: [PULL 04/31] scripts/ci: update gitlab-runner playbook to handle CentOS
Date: Sat, 18 Mar 2023 11:46:17 +0000	[thread overview]
Message-ID: <20230318114644.1340899-5-alex.bennee@linaro.org> (raw)
In-Reply-To: <20230318114644.1340899-1-alex.bennee@linaro.org>

This was broken when we moved to using the pre-built packages as we
didn't take care to ensure we used RPMs where required.

NB: I could never get this to complete on my test setup but I suspect
this was down to network connectivity and timeouts while downloading.

Fixes: 69c4befba1 (scripts/ci: update gitlab-runner playbook to use latest runner)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230315174331.2959-5-alex.bennee@linaro.org>

diff --git a/scripts/ci/setup/gitlab-runner.yml b/scripts/ci/setup/gitlab-runner.yml
index 95d4199c03..1a1b270ff2 100644
--- a/scripts/ci/setup/gitlab-runner.yml
+++ b/scripts/ci/setup/gitlab-runner.yml
@@ -48,13 +48,29 @@
     - debug:
         msg: gitlab-runner arch is {{ gitlab_runner_arch }}
 
-    - name: Download the matching gitlab-runner
+    - name: Download the matching gitlab-runner (DEB)
       get_url:
         dest: "/root/"
         url: "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_{{ gitlab_runner_arch }}.deb"
+      when:
+        - ansible_facts['distribution'] == 'Ubuntu'
+
+    - name: Download the matching gitlab-runner (RPM)
+      get_url:
+        dest: "/root/"
+        url: "https://gitlab-runner-downloads.s3.amazonaws.com/latest/rpm/gitlab-runner_{{ gitlab_runner_arch }}.rpm"
+      when:
+        - ansible_facts['distribution'] == 'CentOS'
 
-    - name: Install gitlab-runner via package manager
+    - name: Install gitlab-runner via package manager (DEB)
       apt: deb="/root/gitlab-runner_{{ gitlab_runner_arch }}.deb"
+      when:
+        - ansible_facts['distribution'] == 'Ubuntu'
+
+    - name: Install gitlab-runner via package manager (RPM)
+      yum: name="/root/gitlab-runner_{{ gitlab_runner_arch }}.rpm"
+      when:
+        - ansible_facts['distribution'] == 'CentOS'
 
     - name: Register the gitlab-runner
       command: "/usr/bin/gitlab-runner register --non-interactive --url {{ gitlab_runner_server_url }} --registration-token {{ gitlab_runner_registration_token }} --executor shell --tag-list {{ ansible_facts[\"architecture\"] }},{{ ansible_facts[\"distribution\"]|lower }}_{{ ansible_facts[\"distribution_version\"] }} --description '{{ ansible_facts[\"distribution\"] }} {{ ansible_facts[\"distribution_version\"] }} {{ ansible_facts[\"architecture\"] }} ({{ ansible_facts[\"os_family\"] }})'"
-- 
2.39.2



  parent reply	other threads:[~2023-03-18 11:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-18 11:46 [PULL 00/31] various fixes (testing, plugins, gitdm) Alex Bennée
2023-03-18 11:46 ` [PULL 01/31] tests/avocado: update AArch64 tests to Alpine 3.17.2 Alex Bennée
2023-03-18 11:46 ` [PULL 02/31] tests/docker: all add DOCKER_BUILDKIT to RUNC environment Alex Bennée
2023-03-18 11:46 ` [PULL 03/31] scripts/ci: add libslirp-devel to build-environment Alex Bennée
2023-03-18 11:46 ` Alex Bennée [this message]
2023-03-18 11:46 ` [PULL 05/31] gitlab: update centos-8-stream job Alex Bennée
2023-03-20 14:44   ` Philippe Mathieu-Daudé
2023-03-20 17:11     ` Alex Bennée
2023-03-18 11:46 ` [PULL 06/31] include/qemu: add documentation for memory callbacks Alex Bennée
2023-03-18 11:46 ` [PULL 07/31] tests/tcg: add some help output for running individual tests Alex Bennée
2023-03-18 11:46 ` [PULL 08/31] tests/avocado: don't use tags to define drive Alex Bennée
2023-03-18 11:46 ` [PULL 09/31] tcg: Clear plugin_mem_cbs on TB exit Alex Bennée
2023-03-18 11:46 ` [PULL 10/31] tcg: Drop plugin_gen_disable_mem_helpers from tcg_gen_exit_tb Alex Bennée
2023-03-18 11:46 ` [PULL 11/31] include/qemu/plugin: Remove QEMU_PLUGIN_ASSERT Alex Bennée
2023-03-20 13:42 ` [PULL 00/31] various fixes (testing, plugins, gitdm) Peter Maydell
2023-03-20 14:15   ` Daniel P. Berrangé
2023-03-20 14:43     ` Philippe Mathieu-Daudé
2023-03-20 14:56       ` Daniel P. Berrangé
2023-03-20 15:00         ` Philippe Mathieu-Daudé
2023-03-22 12:47     ` Daniel P. Berrangé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230318114644.1340899-5-alex.bennee@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=bleal@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    --cc=wainersm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).