Skip to content

Instantly share code, notes, and snippets.

View patst's full-sized avatar

patst

View GitHub Profile
@patst
patst / devops.sh
Created February 9, 2021 07:36 — forked from MaxMelcher/devops.sh
#!/bin/sh
echo $@
echo "start"
cd /home/azuredevopsuser
mkdir agent
cd agent
AGENTRELEASE="$(curl -s https://api.github.com/repos/Microsoft/azure-pipelines-agent/releases/latest | grep -oP '"tag_name": "v\K(.*)(?=")')"
AGENTURL="https://vstsagentpackage.azureedge.net/agent/${AGENTRELEASE}/vsts-agent-linux-x64-${AGENTRELEASE}.tar.gz"