Verified Commit e0dbf713 authored by Sheogorath's avatar Sheogorath 🏰
Browse files

Fix repo sign order

parent 5bdd773f
......@@ -26,7 +26,7 @@ after_success:
# $DOCKER_USERNAME - Docker Hub username used to push the image
# $DOCKER_PASSWORD - Password of the Docker Hub user used to push the image
# See https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" == "feature/serviceRepo" ] && [ "$DOCKER_REPO_PREFIX" != "" ] && [ "$DOCKER_REPO_NAME" != "" ] && [ "$DOCKER_USERNAME" != "" ] && [ "$DOCKER_PASSWORD" != "" ]; then
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$DOCKER_REPO_PREFIX" != "" ] && [ "$DOCKER_REPO_NAME" != "" ] && [ "$DOCKER_USERNAME" != "" ] && [ "$DOCKER_PASSWORD" != "" ]; then
docker images "${DOCKER_REPO_PREFIX}/${DOCKER_REPO_NAME}";
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker images --format "{{.Repository}}:{{.Tag}}" "${DOCKER_REPO_PREFIX}/${DOCKER_REPO_NAME}" | xargs -L 1 docker push ;
......
......@@ -12,8 +12,6 @@ echo -e "Download new RPM packages"
mkdir -p pkgs/rpms
curl -L 'https://github.com/bitwarden/desktop/releases/download/v1.0.5/Bitwarden-1.0.5-x86_64.rpm' -o pkgs/rpms/bitwarden.rpm
# generation of new RPM repository from downloaded packages
createrepo pkgs/rpms/
echo -e "Download new DEB packages"
mkdir pkgs/debs/
......@@ -34,6 +32,9 @@ echo "%_gpg_name $KEYID" > ~/.rpmmacros
# Sign deb package
debsigs --sign=origin -k $KEYID /tmp/bitwarden.deb
# generation of new RPM repository from downloaded packages
createrepo pkgs/rpms/
# generation of new Deb repository from downloaded packages
mkdir pkgs/debs/conf
touch pkgs/debs/conf/{option,distributions}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment