Skip to content

test: Change repo urls in eol debian9 build #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,19 @@ commands:
path: build
build-deb:
steps:
- checkout
- run:
name: Repo update
command: |
apt-get update
- run:
name: Install dependencies
command: |
apt-get -y install binutils
apt-get -y install binutils git
- run:
name: Add local build repo as safe git directory
command: |
git config --global --add safe.directory /tmp/_circleci_local_build_repo
- checkout
- run:
name: Build DEB
command: |
Expand Down Expand Up @@ -112,6 +116,14 @@ commands:
command: |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
build-debian-eol-repo:
steps:
- run:
name: change repo url to archive.debian.org and remove updates repo for EOL versions
command: |
sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list
sed -i 's/security.debian.org/archive.debian.org/g' /etc/apt/sources.list
sed -i '/stretch-updates/d' /etc/apt/sources.list
jobs:
test:
parameters:
Expand Down Expand Up @@ -159,6 +171,16 @@ jobs:
steps:
- build-centos-repo
- build-rpm
build-debian-eol-rpm-package:
parameters:
image:
type: string
executor:
name: linux
image: << parameters.image >>
steps:
- build-debian-eol-repo
- build-deb
workflows:
workflow:
jobs:
Expand Down Expand Up @@ -195,7 +217,7 @@ workflows:
- build-deb-package:
name: ubuntu22
image: ubuntu:22.04
- build-deb-package:
- build-debian-eol-rpm-package:
name: debian9
image: debian:stretch
- build-deb-package:
Expand Down