Skip to content

Commit

Permalink
ci: check packpack sudo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0x501D committed Nov 18, 2022
1 parent ae05f41 commit 8dd14eb
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/packaging.yml
Expand Up @@ -55,6 +55,7 @@ jobs:
with:
repository: packpack/packpack
path: packpack
ref: Totktonada/gh-145-fix-sudo-on-centos-7-under-docker-20.10.18

- name: Fetch tags
# Found that Github checkout Actions pulls all the tags, but
Expand All @@ -66,28 +67,6 @@ jobs:
# that all tags will exist always.
run: git fetch --tags -f

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

- name: Create packages
run: ./packpack/packpack

Expand Down

0 comments on commit 8dd14eb

Please sign in to comment.