Skip to content
Snippets Groups Projects
Commit d25d094e authored by Léa Рая DÉCORNOD's avatar Léa Рая DÉCORNOD Committed by Léa Raya DÉCORNOD
Browse files

initial

parents
Branches
Tags
No related merge requests found
Pipeline #100879 passed with stage
in 18 seconds
/*.egg-info
stages:
- build
variables:
DEBIAN_FRONTEND: noninteractive
DEBIAN_PRIORITY: critical
DEBCONF_NOWARNINGS: 'yes'
build buildah:
stage: build
image:
name: quay.io/buildah/stable:v1.27.0
only:
- main
variables:
STORAGE_DRIVER: vfs
BUILDAH_FORMAT: docker
BUILDAH_LAYERS: 'true'
before_script:
- "echo $CI_REGISTRY_PASSWORD | buildah login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY"
script:
- >
buildah build
--layers --cache-to "${CI_REGISTRY_IMAGE}" --cache-from "${CI_REGISTRY_IMAGE}"
--tag "${CI_REGISTRY_IMAGE}:latest"
--file Dockerfile .
- buildah push "${CI_REGISTRY_IMAGE}:latest"
FROM debian:testing
RUN \
DEBIAN_FRONTEND=noninteractive apt update -yqq &&\
DEBIAN_FRONTEND=noninteractive apt -qy install --no-install-recommends \
python3-debian python3-gpg python3-paramiko python3-requests python3 &&\
rm -rf /var/lib/apt/lists/*
COPY debrepo-upload /usr/bin/debrepo-upload
FROM debian:testing
RUN \
DEBIAN_FRONTEND=noninteractive apt update -yqq &&\
DEBIAN_FRONTEND=noninteractive apt -qy install --no-install-recommends \
build-essential devscripts fakeroot \
dh-exec unzip \
dpkg-dev curl ca-certificates gnupg lftp openssh-client &&\
rm -rf /var/lib/apt/lists/*
COPY control /tmp/build-dep/debian/control
RUN \
DEBIAN_FRONTEND=noninteractive apt update -yqq &&\
DEBIAN_FRONTEND=noninteractive apt build-dep -y --only-source /tmp/build-dep &&\
rm -rf /tmp/build-dep &&\
rm -rf /var/lib/apt/lists/*
#!/bin/bash
set -eu
SCRIPT_DIR="$( dirname -- $(realpath "${BASH_SOURCE[0]}") )"
DEB_SOURCE="$(cd "$SCRIPT_DIR/.." && dpkg-parsechangelog -SSource)"
DEB_VERSION="$(cd "$SCRIPT_DIR/.." && dpkg-parsechangelog -SVersion)"
PKG_DIR="$(basename "$(realpath "$SCRIPT_DIR/..")")"
CI_COMMIT_SHA="latest"
CI_REGISTRY_IMAGE="$DEB_SOURCE"
DOCKER_BUILDKIT=1 docker build -t "$CI_REGISTRY_IMAGE/debian-build:$CI_COMMIT_SHA" \
-f debian/Dockerfile debian/
docker run --rm \
--mount "type=bind,source=$(realpath "$SCRIPT_DIR/../.."),destination=/src" \
--env "WORKSPACE=/src" \
--workdir "/src/$PKG_DIR" \
"$CI_REGISTRY_IMAGE/debian-build:$CI_COMMIT_SHA" \
bash -c "dpkg-buildpackage -b -uc -us -tc"
debrepo-upload (1.0.0) unstable; urgency=medium
* Initial release.
-- Léa Raya DÉCORNOD <lea@decornod.com> Fri, 17 Feb 2023 14:19:45 +0100
Source: debrepo-upload
Section: devel
Priority: optional
Maintainer: Léa Raya DÉCORNOD <lea@decornod.com>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
dh-sequence-python3,
python3-setuptools,
python3-all,
python3-debian,
python3-gpg,
python3-paramiko,
python3-requests,
#Testsuite: autopkgtest-pkg-python
Standards-Version: 4.6.2
Homepage: https://git.unistra.fr/decornod/debrepo-upload
Vcs-Browser: https://git.unistra.fr/decornod/debrepo-upload
Vcs-Git: https://git.unistra.fr/decornod/debrepo-upload.git
Package: debrepo-upload
Architecture: all
Depends:
${python3:Depends},
${misc:Depends},
Description: upload .deb packages to remote SFTP repository
upload .deb packages to remote SFTP debian repository
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: <url://example.com>
Upstream-Name: debrepo-upload
Upstream-Contact: <preferred name and address to reach the upstream project>
Files:
*
Copyright:
2023 Léa Raya DÉCORNOD <lea@decornod.com>
License: Apache-2.0
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
https://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Comment:
On Debian systems, the complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".
#!/usr/bin/make -f
export PYBUILD_NAME=debrepo-upload
%:
dh $@ --with python3 --buildsystem=pybuild
3.0 (native)
extend-diff-ignore = "^([^/]*[.]egg-info/|\.gitlab-ci\.yml)"
This diff is collapsed.
setup.py 0 → 100644
#!/usr/bin/env python
from distutils.core import setup
setup(name='debrepo-upload',
version='1.0.0',
description='upload .deb packages to remote SFTP debian repository',
author='Léa Raya DÉCORNOD',
author_email='lea@decornod.com',
url='https://git.unistra.fr/decornod/debrepo-upload',
install_requires=[
'debian',
'gpg',
'paramiko',
'requests',
],
scripts=[ 'debrepo-upload' ],
)
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