Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA-794: Deprecate versions.json updates #2663

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.