'How to install GitLab Runner on Ubuntu Server?

I have downloaded the package for the system:

curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_${arch}.deb"

And then installed the package on my server(system), with this command:

dpkg -i gitlab-runner_<arch>.deb

When i run this command on my server i get this error:

bash: arch: No such file or directory

How can i solve this? (For what reason i get this?)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source