From 6c3164d07b6a40b96cd86967a349d6fd12f40e30 Mon Sep 17 00:00:00 2001 From: "ryan.kuba" Date: Thu, 8 Sep 2022 13:42:01 -0400 Subject: [PATCH] KASM-3188 need another readme matrix as well --- .gitlab-ci.yml | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 407ed0d..d4e717c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -673,8 +673,40 @@ update_readmes: - ubuntu-focal-dind - ubuntu-focal-dind-rootless - unityhub - - vivaldi - vlc - vs-code - zoom - zsnes + +update_readmes2: + stage: readme + script: + - apk add git + - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@${README_TEMPLATE_REPO} + - sed -e "/{about}/r docs/$KASM_IMAGE/README.md" -e "/{about}/d" dockerhub-readme-template/TEMPLATE.md > docs/$KASM_IMAGE/FULL_README.md + - cat docs/$KASM_IMAGE/FULL_README.md + - > + docker run -v $PWD:/workspace + -e DOCKER_USERNAME="$README_USERNAME" + -e DOCKER_PASSWORD="$README_PASSWORD" + -e DOCKERHUB_REPOSITORY="${ORG_NAME}/$KASM_IMAGE-private" + -e README_FILEPATH="/workspace/docs/$KASM_IMAGE/FULL_README.md" + -e DESCRIPTION_FILEPATH="/workspace/docs/$KASM_IMAGE/description.txt" + ${ORG_NAME}/dockerhub-updater:latest + - > + docker run -v $PWD:/workspace + -e DOCKER_USERNAME="$README_USERNAME" + -e DOCKER_PASSWORD="$README_PASSWORD" + -e DOCKERHUB_REPOSITORY="${ORG_NAME}/$KASM_IMAGE" + -e README_FILEPATH="/workspace/docs/$KASM_IMAGE/FULL_README.md" + -e DESCRIPTION_FILEPATH="/workspace/docs/$KASM_IMAGE/description.txt" + ${ORG_NAME}/dockerhub-updater:latest + + only: + variables: + - $README_USERNAME + - $README_PASSWORD + parallel: + matrix: + - KASM_IMAGE: + - vivaldi