summaryrefslogtreecommitdiffstats
path: root/releases/scripts/release-status.sh
blob: 6790100a7d54246b8a5aa03f1b75f370f79d1989 (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
    python 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