mirror of
https://github.com/papodaca/install-docker-action.git
synced 2024-11-23 18:02:09 +00:00
14 lines
725 B
YAML
14 lines
725 B
YAML
name: Install Docker
|
|
description: Install Docker on debian or ubuntu
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- shell: bash
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y ca-certificates curl gnupg lsb-release
|
|
mkdir -m 0755 -p /etc/apt/keyrings
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/$(lsb_release -i | awk '{ print tolower($3) }') $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
|
|
apt-get update
|
|
apt-get install -y docker-ce-cli docker-buildx-plugin docker-compose-plugin
|