diff --git a/.woodpecker.yml b/.woodpecker.yml index eaa1f30..50f20d8 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,14 +4,17 @@ when: steps: checkout: image: debian:latest + environment: + GONETS: + from_secret: GONETS commands: - apt-get update - apt-get install -y git git-lfs - git lfs install - git init - - git remote add origin https://dev.gossys.dev/s.galanskiy/gonets.git - - git fetch --no-tags --depth=1 origin main - - git checkout main + - git remote add origin https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets.git + - git fetch --no-tags --depth=1 --filter=tree:0 origin 3671127db65ee6a7990216f7be2972534f13dd60 + - git checkout 3671127db65ee6a7990216f7be2972534f13dd60 - git lfs fetch - git submodule update --init --recursive --depth=1 --recommend-shallow