Skip to content

Commit

Permalink
chore: Deprecate versions.json updates
Browse files Browse the repository at this point in the history
We don't know how this will look in the future, but for the time being
we should stop updating a file that won't anymore represent what we are
supporting or not.

Ticket: QA-794

Signed-off-by: Lluis Campos <[email protected]>
  • Loading branch information
lluiscampos committed Nov 5, 2024
1 parent 2d0f512 commit 5c5924c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 211 deletions.
46 changes: 0 additions & 46 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,49 +44,3 @@ variables:
MENDER_CLIENT_TAG:
description: "Mender Client Docker tag for running integration tests"
value: mender-master

.publish:versions:
stage: publish
image: python:slim
before_script:
- apt-get update && apt-get install -qqy curl hub unzip
- export GITHUB_TOKEN="$GITHUB_BOT_TOKEN_REPO_FULL"
- pip3 install pyyaml
- curl -fsSL https://deno.land/x/install/install.sh | sh
- curl -sLO https://docs.mender.io/releases/versions.json
# Prepare SSH key
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan github.com >> ~/.ssh/known_hosts
# Configure git
- git config --global user.email "[email protected]"
- git config --global user.name "Mender Test Bot"
script:
- git for-each-ref --shell --format="tag:%(refname:short) datetime:%(creatordate:format:%s)" "refs/tags/*" | sort -V -r > tags
- python extra/release_info_generator.py
- /root/.deno/bin/deno fmt versions.json
- hub clone mendersoftware/mender-docs-site && mv versions.json mender-docs-site/releases/versions.json && cd mender-docs-site
- git checkout -b update-versions-$(date +%s)
- "git add releases/versions.json && git commit --signoff -m 'chore: Version information update'"
- hub pull-request --push --base mendersoftware:master --message "Version information update" --message "keeping up with the versions"
artifacts:
expire_in: 2w
paths:
- mender-docs-site/releases/versions.json
when: always

publish:versions:tags:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_TAG
extends: .publish:versions

publish:versions:manual:
when: manual
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
extends: .publish:versions
165 changes: 0 additions & 165 deletions extra/release_info_generator.py

This file was deleted.

0 comments on commit 5c5924c

Please sign in to comment.