mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 22:30:22 -04:00
27 lines
696 B
Text
27 lines
696 B
Text
![]() |
#!/usr/bin/env bash
|
||
|
set -x
|
||
|
set -e
|
||
|
|
||
|
version=$1
|
||
|
distro=$2
|
||
|
|
||
|
maintainer=$(awk -F ': ' '$1 == "Maintainer" { print $2; exit }' debian/control)
|
||
|
|
||
|
cat > "debian/changelog" <<-EOF
|
||
|
docker-credential-helpers ($version) $DISTRO; urgency=low
|
||
|
|
||
|
* New upstream version
|
||
|
|
||
|
-- $maintainer $(date --rfc-2822)
|
||
|
EOF
|
||
|
|
||
|
mkdir -p src/github.com/docker/docker-credential-helpers
|
||
|
ln -s /build/credentials /build/src/github.com/docker/docker-credential-helpers/credentials
|
||
|
ln -s /build/secretservice /build/src/github.com/docker/docker-credential-helpers/secretservice
|
||
|
ln -s /build/pass /build/src/github.com/docker/docker-credential-helpers/pass
|
||
|
|
||
|
dpkg-buildpackage -us -uc
|
||
|
|
||
|
mkdir /release
|
||
|
mv /docker-credential-* /release
|