mirror of
https://github.com/papodaca/install-docker-action.git
synced 2024-11-27 20:02:08 +00:00
Initial commit
This commit is contained in:
commit
9ca6633e52
1 changed files with 14 additions and 0 deletions
14
action.yml
Normal file
14
action.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
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
|
Loading…
Reference in a new issue