summaryrefslogtreecommitdiffstats
path: root/releases/scripts/release-status.sh
blob: 1fb4f70e26e1f495628d59a489628498ae11c903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
##############################################################################
# Copyright (c) 2018 The Linux Foundation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
set -o pipefail

TAG="${TAG:-opnfv-6.0.0}"
RELEASE="${RELEASE:-fraser}"

[ -a repos.txt ] && rm repos.txt

for project in releases/$RELEASE/*; do
    python3 releases/scripts/repos.py -n -f $project >> repos.txt
done

while read -r repo
do
    tag="$(git ls-remote "https://gerrit.opnfv.org/gerrit/$repo.git" "refs/tags/$TAG")"
    echo "$repo $tag"
done < repos.txt