Skip to content

Commit d9f0e49

Browse files
committed
fix docs for push-images-to-git and push-packages-to-git
1 parent 65e2576 commit d9f0e49

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

bin/push-images-to-git

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
set -e
88
#
99
# For all images prepared by build-packages-for-obs.sh in
10-
# $WORKSPACE/SRPMS/<package> prepare and submitt changed images
10+
# $WORKSPACE/SRPMS/<package> prepare and submit changed images
1111
# to one GIT repository.
1212
#
13+
# To exec push.sh you may need OSC access with credentials
1314
# Use $OSCRC ot pass an osc configfile containing required credentials
14-
# (otherwise ~/.oscrc)
15+
# (otherwise ~/.config/oscrc)
1516
#
1617
# srpm_package_defs() has a hardcoded list of packages excluded by default.
1718
#
@@ -48,6 +49,17 @@ grep -v -- "\(--help\|-h\|-?\)\>" <<<"$@" || {
4849
Usage: push-images-to-obs.sh [IMAGE]..
4950
Submit changed images from \$WORKSPACE/SRPMS/<image> ($WORKSPACE)
5051
to GIT ($GIT_ORG). Without argument all images in SRPMS are processed.
52+
53+
This script add all images to 1 git repo in a sub directory.
54+
55+
Optionally you can provide the following environment valiables:
56+
GIT_ORG: The git organization (Default: galaxy)
57+
GIT_SRV: The git server (Default: src.suse.de)
58+
GIT_PRODUCT_REPO: The git repository name (Default: MLM-products)
59+
GIT_BRANCH: The git default branch where to submit to (Default: the current branch you are in)
60+
61+
NO_PUSH: Specify when you do not want to push but check what commits were created
62+
5163
EOF
5264
exit 0
5365
}

bin/push-packages-to-git

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ set -e
1010
# $WORKSPACE/SRPMS/<package> prepare and submit changed packages
1111
# to OBS.
1212
#
13-
# Use $OSCRC to pass an osc configfile containing required credentials
14-
# (otherwise ~/.oscrc)
13+
# To execute push.sh you may need OSC access with credentials
14+
# Use $OSCRC ot pass an osc configfile containing required credentials
15+
# (otherwise ~/.config/oscrc)
1516
#
1617
# srpm_package_defs() has a hardcoded list of packages excluded by default.
1718
#
@@ -47,6 +48,16 @@ grep -v -- "\(--help\|-h\|-?\)\>" <<<"$@" || {
4748
Usage: push-packages-to-obs.sh [PACKAGE]..
4849
Submit changed packages from \$WORKSPACE/SRPMS/<package> ($WORKSPACE)
4950
to GIT ($GIT_ORG). Without argument all packages in SRPMS are processed.
51+
52+
This script add the packages to its own git repo.
53+
54+
Optionally you can provide the following environment valiables:
55+
GIT_ORG: The git organization (Default: galaxy)
56+
GIT_SRV: The git server (Default: src.suse.de)
57+
GIT_BRANCH: The git default branch where to submit to (Default: the current branch you are in)
58+
59+
NO_PUSH: Specify when you do not want to push but check what commits were created
60+
5061
EOF
5162
exit 0
5263
}

0 commit comments

Comments
 (0)