From 9f65cd423127deea323c07db7249e28ffb392dd9 Mon Sep 17 00:00:00 2001 From: rschoene <rene.schoene@tu-dresden.de> Date: Tue, 30 Nov 2021 14:26:55 +0100 Subject: [PATCH] fix ci - use common image with both wget and unzip - download latest dev artifact if run from this repo --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d97e705..b0eb666 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,10 +4,11 @@ stages: - publish pages: - image: "debian:bullseye" + image: "python:3.10.0-bullseye" stage: publish script: - - wget https://git-st.inf.tu-dresden.de/jastadd/ragconnect/-/jobs/$UPSTREAM_JOB_ID/artifacts/download archive.zip + - if [ $UPSTREAM_JOB_ID ]; then TARGET=https://git-st.inf.tu-dresden.de/jastadd/ragconnect/-/jobs/$UPSTREAM_JOB_ID/artifacts/download; else TARGET=https://git-st.inf.tu-dresden.de/jastadd/ragconnect/-/jobs/artifacts/dev/download?job=pages-dev; fi + - wget $TARGET archive.zip - unzip archive.zip artifacts: paths: -- GitLab