Skip to content

Commit b0c2020

Browse files
0x501DLeonidVas
authored andcommitted
Revert "cd: fix packaging for CentOS7"
This reverts commit e7796bf. This issue was fixed: packpack/packpack@a119caf
1 parent e7796bf commit b0c2020

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

.github/workflows/packaging.yml

+3-25
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
if: |
1010
github.event_name == 'push' ||
1111
github.event.pull_request.head.repo.full_name != github.repository
12-
# We use a particular version of the distribution because we want to install
13-
# a particular version of Docker.
14-
runs-on: ubuntu-22.04
12+
# Packaging for CentOS 7 does not work with other versions, see:
13+
# https://github.com/packpack/packpack/issues/145
14+
runs-on: ubuntu-18.04
1515

1616
strategy:
1717
fail-fast: false
@@ -61,28 +61,6 @@ jobs:
6161
# that all tags will exists always.
6262
run: git fetch --tags -f
6363

64-
# We use a specific version of Docker because otherwise we have a problem
65-
# with sudoers on CentOS7.
66-
# See more details: https://github.com/packpack/packpack/issues/145
67-
- name: Reinstall Docker
68-
if: |
69-
matrix.platform.os == 'el' &&
70-
matrix.platform.dist == '7'
71-
run: |
72-
sudo apt-get -y purge moby-containerd* moby-engine* moby-runc*
73-
sudo mkdir -p /etc/apt/keyrings
74-
curl -fsSL ${DOCKER_URL}/gpg | sudo gpg --dearmor -o ${GPG_KEY}
75-
echo "deb [arch=$(dpkg --print-architecture) signed-by=${GPG_KEY}] \
76-
${DOCKER_URL} $(lsb_release -cs) stable" | \
77-
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
78-
sudo apt-get update
79-
sudo apt-get -y install docker-ce=${DOCKER_VERSION} \
80-
docker-ce-cli=${DOCKER_VERSION}
81-
env:
82-
DOCKER_URL: https://download.docker.com/linux/ubuntu
83-
DOCKER_VERSION: 5:20.10.17~3-0~ubuntu-jammy
84-
GPG_KEY: /etc/apt/keyrings/docker.gpg
85-
8664
- name: Create packages
8765
run: ./packpack/packpack
8866

0 commit comments

Comments
 (0)