Compare commits

..

6 commits

Author SHA1 Message Date
Benjamin Renard
2d08374a53
build-deb.sh: exclude docker & build-deb.sh related commits in generated changelog 2023-10-26 18:22:21 +02:00
Benjamin Renard
129cfa537b
Docker: add build-and-push-all.sh 2023-10-26 18:19:20 +02:00
Benjamin Renard
f176b626d5
Release 4.2.0-1 2023-10-26 17:52:39 +02:00
Benjamin Renard
f9bf3a7597
CI: fully specified image names 2023-10-26 17:44:02 +02:00
Benjamin Renard
06654969d0
CI: publish a new release in Gitlab on new tag 2023-10-26 17:44:02 +02:00
Benjamin Renard
e985f50d8a
CI: add build & publish step for debian stable package 2023-10-26 17:44:01 +02:00
8 changed files with 44 additions and 11 deletions

View file

@ -122,8 +122,8 @@ build:debian-stable:
cache: cache:
paths: paths:
- .cache/pip - .cache/pip
rules: only:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master" - tags
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
rules: only:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master" - tags
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
rules: only:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master" - tags
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
rules: only:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master" - tags
script: script:
- ./.gitlab/release.sh - ./.gitlab/release.sh

View file

@ -114,10 +114,11 @@ $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\.sh" \ --exclude "build-deb\.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
-- Benjamin Renard <brenard@easter-eggs.com> Thu, 26 Oct 2023 11:55:52 +0200 -- LdapSaisie project <support+ldapsaisie@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

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

View file

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

5
docker/Dockerfile.buster Normal file
View file

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

View file

@ -1,4 +1,3 @@
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

@ -0,0 +1,18 @@
#!/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