ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab (งาน devops)

แชร์ความรู้ Linux Ubuntu Web Server บทความ การ config server Linux FreeBSD Apache
การติดตั้ง XAMPP Mysql PHP ใครต้องการแชร์ความรู้เรื่องต่างๆ เหล่านี้ให้ ท่านหรืออื่น โพสที่หมวดนี้ได้

Moderator: mindphp, ผู้ดูแลกระดาน

ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 47779
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab (งาน devops)

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab

โค้ด: เลือกทั้งหมด

# เพิ่ม GitLab Runner repository
curl -L --output /usr/share/keyrings/gitlab-archive-keyring.gpg https://packages.gitlab.com/gitlab/gitlab-runner/gpgkey

# เพิ่ม repository ลงใน APT sources
echo "deb [signed-by=/usr/share/keyrings/gitlab-archive-keyring.gpg] https://packages.gitlab.com/gitlab/gitlab-runner/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gitlab-runner.list

# อัพเดท repository และติดตั้ง GitLab Runner
sudo apt update
sudo apt install gitlab-runner
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 47779
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

เจอ Error
E: The repository 'https://packages.gitlab.com/gitlab/gitlab-runner/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <[email protected]>
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 47779
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

เช็ค apt-key ของ GitLab ดูแล้ว

โค้ด: เลือกทั้งหมด

sudo apt-key list
มี key แค่ key หมดอายุ

ปัญหามาจาก GPG ของ GitLab หมดอายุ (expired) ระบบจึงไม่สามารถตรวจสอบลายเซ็นได้ และไม่สามารถอัปเดตแพ็กเกจจาก repository ของ GitLab ได้อย่างปลอดภัย ข้อความ expired: 2022-03-02 ระบุว่ากุญแจหมดอายุไปตั้งแต่วันที่ 2 มีนาคม 2022 แล้ว
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 47779
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

หาทางเพิ่ม key และ เอาลิงค์ gitlab เข้า list เพื่ออัพเดดให้ได้

ตรวจสอบ 2 ที่
1. ตรวจสอบ key
2. เช็คไฟล์ list

note ไม่ต้องระบุ ไฟล์ key ลงใน list
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 47779
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

ตอนนี้ทำได้แล้ว เราสรุปวิธีและปัญหาที่เจอมาฝาก
viewtopic.php?t=113154

ซึ่งจะทำให้การเขียน ci/cd ทำได้ง่ายขึ้น
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
บุคคลทั่วไป

Re: ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab (งาน devops)

โพสต์ที่ยังไม่ได้อ่าน โดย บุคคลทั่วไป »

mindphp เขียน: 06/11/2024 3:38 pm ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab

โค้ด: เลือกทั้งหมด

# เพิ่ม GitLab Runner repository
curl -L --output /usr/share/keyrings/gitlab-archive-keyring.gpg https://packages.gitlab.com/gitlab/gitlab-runner/gpgkey

# เพิ่ม repository ลงใน APT sources
echo "deb [signed-by=/usr/share/keyrings/gitlab-archive-keyring.gpg] https://packages.gitlab.com/gitlab/gitlab-runner/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gitlab-runner.list

# อัพเดท repository และติดตั้ง GitLab Runner
sudo apt update
sudo apt install gitlab-runner
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 9