Compare commits

..

4 commits

Author SHA1 Message Date
Benjamin Renard
ef94f4dd70
Release 4.2.0-1 2023-10-26 14:23:30 +02:00
Benjamin Renard
717d424f76
CI: fully specified image names 2023-10-26 14:23:00 +02:00
Benjamin Renard
982d29aa63
CI: publish a new release in Gitlab on new tag 2023-10-26 14:20:40 +02:00
Benjamin Renard
f6fa5a2d96
CI: add build & publish step for debian stable package 2023-10-26 12:52:19 +02:00
8 changed files with 11 additions and 44 deletions

View file

@ -122,8 +122,8 @@ build:debian-stable:
cache: cache:
paths: paths:
- .cache/pip - .cache/pip
only: rules:
- tags - if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master"
script: script:
- ./build-deb.sh --install-build-deps - ./build-deb.sh --install-build-deps
- rm -fr dist/ldapsaisie-* - rm -fr dist/ldapsaisie-*
@ -289,8 +289,8 @@ publish:debian-stable:
image: docker.io/debian:stable-slim image: docker.io/debian:stable-slim
needs: needs:
- build:debian-stable - build:debian-stable
only: rules:
- tags - if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master"
before_script: before_script:
- apt-get update - apt-get update
- apt-get install -y --no-install-recommends rsync openssh-client dupload - apt-get install -y --no-install-recommends rsync openssh-client dupload
@ -310,8 +310,8 @@ publish:gitlab:
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
needs: needs:
- build:debian-stable - build:debian-stable
only: rules:
- tags - if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master"
script: script:
- ./.gitlab/publish.sh - ./.gitlab/publish.sh
artifacts: artifacts:
@ -345,7 +345,7 @@ release:
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
needs: needs:
- publish:gitlab - publish:gitlab
only: rules:
- tags - if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master"
script: script:
- ./.gitlab/release.sh - ./.gitlab/release.sh

View file

@ -114,11 +114,10 @@ $GITDCH \
--code-name $DEBIAN_CODENAME \ --code-name $DEBIAN_CODENAME \
--output $DIST_DIR/debian/changelog \ --output $DIST_DIR/debian/changelog \
--release-notes ../release-notes.md \ --release-notes ../release-notes.md \
--exclude "^Docker: " \
--exclude "^CI: " \ --exclude "^CI: " \
--exclude "^debian: " \ --exclude "^debian: " \
--exclude "\.gitlab-ci\.yml" \ --exclude "\.gitlab-ci\.yml" \
--exclude "build-deb\.sh" \ --exclude "build\.sh" \
--exclude "README\.md" \ --exclude "README\.md" \
--exclude "^Merge branch " \ --exclude "^Merge branch " \
--verbose "${GITDCH_EXTRA_ARGS[@]}" --verbose "${GITDCH_EXTRA_ARGS[@]}"

2
debian/changelog vendored
View file

@ -18,7 +18,7 @@ ldapsaisie (4.2.0-1) stable; urgency=medium
* supann: Add supannCMSIdEtiquette attribute support * supann: Add supannCMSIdEtiquette attribute support
* doc: switch format to Markdown & Mkdocs * doc: switch format to Markdown & Mkdocs
-- LdapSaisie project <support+ldapsaisie@easter-eggs.com> Thu, 26 Oct 2023 11:55:52 +0200 -- Benjamin Renard <brenard@easter-eggs.com> Thu, 26 Oct 2023 11:55:52 +0200
ldapsaisie (4.1.0-1) unstable; urgency=medium ldapsaisie (4.1.0-1) unstable; urgency=medium

View file

@ -1,3 +1,4 @@
FROM debian:11
# Update/upgrade # Update/upgrade
RUN apt-get update RUN apt-get update
RUN apt-get upgrade -y RUN apt-get upgrade -y

View file

@ -1,5 +0,0 @@
# syntax = edrevo/dockerfile-plus
FROM debian:bookworm-slim
INCLUDE+ Dockerfile.common

View file

@ -1,5 +0,0 @@
# syntax = edrevo/dockerfile-plus
FROM debian:bullseye-slim
INCLUDE+ Dockerfile.common

View file

@ -1,5 +0,0 @@
# syntax = edrevo/dockerfile-plus
FROM debian:buster-slim
INCLUDE+ Dockerfile.common

View file

@ -1,18 +0,0 @@
#!/bin/bash
cd $( dirname $0 )
# Need to use Dockerfile+ (https://github.com/edrevo/dockerfile-plus)
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
DISTS=(bookworm bullseye buster)
LATEST_DIST=${DISTS[0]}
for dist in ${DISTS[@]}
do
docker build -t brenard/ldapsaisie:$dist -f Dockerfile.$dist .
[ $? -eq 0 ] && docker push brenard/ldapsaisie:$dist
done
docker build -t brenard/ldapsaisie:latest -f Dockerfile.$LATEST_DIST .
[ $? -eq 0 ] && docker push brenard/ldapsaisie:latest