Add git dependency

This commit is contained in:
Tanguy Herbron 2021-11-08 15:22:20 +01:00
parent 5c2913357f
commit 1b4169b22b

View File

@ -4,6 +4,7 @@ docker-build:
services: services:
- docker:dind - docker:dind
script: script:
- apk add git
- git clone https://gitlab.com/gitlab-org/omnibus-gitlab /tmp/gitlab - git clone https://gitlab.com/gitlab-org/omnibus-gitlab /tmp/gitlab
- cd /tmp/gitlab - cd /tmp/gitlab
- "L_VER=$(curl --request GET -L --header 'PRIVATE-TOKEN: n-bR4j6fsaNBLa2NBm_y' --header 'Accept: application/json' --header 'Content-Type: application/json' https://git.halia.dev/api/v4/projects/24/registry/repositories/6/tags | jq -r '.[].location' | cut -d ':' -f2 | sort -V | head -2 | tail -1)" - "L_VER=$(curl --request GET -L --header 'PRIVATE-TOKEN: n-bR4j6fsaNBLa2NBm_y' --header 'Accept: application/json' --header 'Content-Type: application/json' https://git.halia.dev/api/v4/projects/24/registry/repositories/6/tags | jq -r '.[].location' | cut -d ':' -f2 | sort -V | head -2 | tail -1)"