Skip to content

Instantly share code, notes, and snippets.

@verdimrc
Last active May 11, 2022 10:23
Show Gist options
  • Save verdimrc/ceff104f573cc139f4faf3c717336e93 to your computer and use it in GitHub Desktop.
Save verdimrc/ceff104f573cc139f4faf3c717336e93 to your computer and use it in GitHub Desktop.
gitlab-runner.sh
# Miscellaneous references:
# - https://docs.gitlab.com/ee/ci/unit_test_reports.html#python-example
# - https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html
# - https://stackoverflow.com/a/36358790
# NOTES:
# - apparently, gitlab is deprecating gitlab-runner exec
# - alt OSS: https://github.com/firecow/gitlab-ci-local
################################################################################
# alinux2
# Gitlab version: https://gitlab.aws.dev/help => 14.8.2-ee
# https://docs.gitlab.com/runner/install/linux-repository.html
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash
sudo yum install -y gitlab-runner
gitlab-runner exec docker <task-name in .gitlab-ci.yml>
/usr/share/gitlab-runner/clear-docker-cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment