From 84665259b352d80047727be5a37318175c0700d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leynier=20Guti=C3=A9rrez=20Gonz=C3=A1lez?= Date: Tue, 27 Sep 2022 02:49:13 +0000 Subject: [PATCH] feat: add installation and configuration rules to makefile --- .gitpod.yml | 1 + makefile | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index c845c8a..cfdff0f 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,5 +1,6 @@ tasks: - init: make install + command: make config vscode: extensions: - ms-vscode-remote.remote-containers diff --git a/makefile b/makefile index 917dbda..209407c 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -install: install_hatch +install: install_gh_cli install_hatch install_hatch: install_pipx pipx install hatch @@ -10,3 +10,13 @@ install_pipx: install_python_with_pyenv install_python_with_pyenv: pyenv install 3.10.7 && \ pyenv global 3.10.7 + +install_gh_cli: + wget https://github.com/cli/cli/releases/download/v2.16.1/gh_2.16.1_linux_amd64.deb && \ + sudo dpkg -i gh_2.16.1_linux_amd64.deb && \ + rm gh_2.16.1_linux_amd64.deb + +config: config_gh_cli + +config_gh_cli: + gh auth login