forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build number, release version to build artifact names
Change-Id: Id6e2e65a68bad4b535df90dbe81f299160d2303c Reviewed-on: http://photon-jenkins.eng.vmware.com/46 Reviewed-by: Divya Thaluru <[email protected]> Reviewed-by: <[email protected]> Tested-by: jenkins-photon <[email protected]>
- Loading branch information
Showing
14 changed files
with
109 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
FROM scratch | ||
MAINTAINER [email protected] | ||
|
||
ADD stage/photon-rootfs.tar.bz2 / | ||
ADD stage/photon-rootfs-$PHOTON_RELEASE_VERSION-$PHOTON_BUILD_NUMBER.tar.bz2 / | ||
|
||
VOLUME /var/lib/docker | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
Summary: Default file system | ||
Name: filesystem | ||
Version: 7.5 | ||
Release: 8%{?dist} | ||
Release: 9%{?dist} | ||
License: GPLv3 | ||
Group: System Environment/Base | ||
Vendor: VMware, Inc. | ||
URL: http://www.linuxfromscratch.org | ||
Distribution: Photon | ||
|
||
%description | ||
The filesystem package is one of the basic packages that is installed | ||
on a Linux system. Filesystem contains the basic directory | ||
|
@@ -319,19 +320,22 @@ EOF | |
# | ||
# chapter 9.1. The End | ||
# | ||
echo "VMware Photon Linux 1.0 TP2" > %{buildroot}/etc/photon-release | ||
|
||
echo "VMware Photon Linux %{photon_release_version}" > %{buildroot}/etc/photon-release | ||
echo "PHOTON_BUILD_NUMBER=%{photon_build_number}" >> %{buildroot}/etc/photon-release | ||
|
||
cat > %{buildroot}/etc/lsb-release <<- "EOF" | ||
DISTRIB_ID="VMware Photon" | ||
DISTRIB_RELEASE="1.0 TP2" | ||
DISTRIB_RELEASE="%{photon_release_version}" | ||
DISTRIB_CODENAME=Photon | ||
DISTRIB_DESCRIPTION="VMware Photon 1.0 TP2" | ||
DISTRIB_DESCRIPTION="VMware Photon %{photon_release_version}" | ||
EOF | ||
|
||
cat > %{buildroot}/usr/lib/os-release <<- "EOF" | ||
NAME="VMware Photon" | ||
VERSION="1.0 TP2" | ||
VERSION="%{photon_release_version}" | ||
ID=photon | ||
VERSION_ID=1.0 | ||
VERSION_ID=%{photon_release_version} | cut -d- -f1 | ||
PRETTY_NAME="VMware Photon/Linux" | ||
ANSI_COLOR="1;34" | ||
HOME_URL="https://vmware.github.io/photon/" | ||
|
@@ -466,6 +470,8 @@ ln -sv ../usr/lib/os-release %{buildroot}/etc/os-release | |
/usr/local/lib64 | ||
%endif | ||
%changelog | ||
* Fri Oct 02 2015 Vinay Kulkarni <[email protected]> 7.5-9 | ||
- Dump build-number and release version from macros. | ||
* Fri Aug 14 2015 Sharath George <[email protected]> 7.5-8 | ||
- upgrading release to TP2 | ||
* Tue Jun 30 2015 Alexey Makhalov <[email protected]> 7.5-7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/bin/bash | ||
|
||
PHOTON_IMG_OUTPUT_PATH=$1 | ||
tar -Szcf $PHOTON_IMG_OUTPUT_PATH/photon-ami.tar.gz $PHOTON_IMG_OUTPUT_PATH/photon-ami.raw | ||
|
||
rm -f $PHOTON_IMG_OUTPUT_PATH/photon-ami.raw | ||
cd $PHOTON_IMG_OUTPUT_PATH | ||
mv photon-ami.raw photon-ami-$PHOTON_RELEASE_VER-$PHOTON_BUILD_NUM.raw | ||
tar -Szcf photon-ami-$PHOTON_RELEASE_VER-$PHOTON_BUILD_NUM.tar.gz photon-ami-$PHOTON_RELEASE_VER-$PHOTON_BUILD_NUM.raw | ||
ln -s photon-ami-$PHOTON_RELEASE_VER-$PHOTON_BUILD_NUM.tar.gz photon-ami.tar.gz | ||
|
||
rm -f photon-ami-$PHOTON_RELEASE_VER-$PHOTON_BUILD_NUM.raw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.