From 9ca6633e52fba32927ec14354f4ff6987c114070 Mon Sep 17 00:00:00 2001 From: Ethan Apodaca Date: Tue, 21 Mar 2023 20:32:26 -0700 Subject: [PATCH] Initial commit --- action.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..388c7fa --- /dev/null +++ b/action.yml @@ -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