ci(release): install Docker CLI through APT
Avoid firewall restrictions that prevent the Docker setup action from working on the Gitea runner. Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
1 file changed
+23
-1
@@ -14,8 +14,30 @@ jobs:
|
||||
steps:
|
||||
# NOTE:
|
||||
# Install Docker because the Gitea ubuntu-latest runner does not include it.
|
||||
# The action docker/setup-docker-action can not be used, because of internal Firewall rules of the Gitea runner.
|
||||
# For this reason will be installed docker directly from distribution packages.
|
||||
- name: Install Docker
|
||||
uses: docker/setup-docker-action@3f1ab1ab0e29231562e4db4ca600c1a49653bac6 # v5.7.0
|
||||
run: |
|
||||
apt update --yes
|
||||
apt install --yes curl ca-certificates gnupg
|
||||
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl \
|
||||
--fail \
|
||||
--location \
|
||||
--silent \
|
||||
--show-error \
|
||||
https://download.docker.com/linux/ubuntu/gpg | gpg --batch --yes --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
chmod a+r /etc/apt/keyrings/docker.gpg
|
||||
|
||||
# Add APT-List for docker-ce
|
||||
. /etc/os-release
|
||||
cat > /etc/apt/sources.list.d/docker.list <<EOF
|
||||
deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu ${VERSION_CODENAME} stable
|
||||
EOF
|
||||
|
||||
apt update --yes
|
||||
apt install --yes apt-transport-https docker-ce-cli
|
||||
|
||||
# NOTE:
|
||||
# Use volker-raschek/cosign-installer, because envsubst is currently not supported.
|
||||
|
||||
Reference in new issue
Block a user