Skip to content

Commit a5c6c2d

Browse files
committed
CI: remove workflows before building
1 parent 7e9f8bf commit a5c6c2d

File tree

3 files changed

+32
-15
lines changed

3 files changed

+32
-15
lines changed

.github/workflows/build-deb.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,19 @@ jobs:
2020
apt update
2121
apt install -y git-buildpackage build-essential debhelper-compat default-libmysqlclient-dev krb5-multidev libapparmor-dev libbz2-dev libcap-dev libdb-dev libexpat-dev libexttextcat-dev libicu-dev libldap2-dev liblua5.4-dev liblz4-dev liblzma-dev libpam0g-dev libpq-dev libsasl2-dev libsodium-dev libsqlite3-dev libssl-dev libstemmer-dev libsystemd-dev libwrap0-dev libzstd-dev pkg-config zlib1g-dev git libunwind-dev rsync
2222
23-
- name: clone repository
24-
run: git clone https://github.com/chatmail/dovecot
23+
- uses: actions/checkout@v4
24+
with:
25+
path: dovecot
26+
show-progress: false
27+
fetch-depth: 0
2528

2629
- name: build
2730
run: |
2831
cd dovecot
32+
git rm -r .github
33+
git config --local user.name "test"
34+
git config --local user.email "[email protected]"
35+
git commit -am "CI: remove .github directory before building"
2936
DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-no-pristine-tar -us -uc
3037
3138
- name: upload .deb files
@@ -45,12 +52,19 @@ jobs:
4552
apt update
4653
apt install -y git-buildpackage build-essential debhelper-compat default-libmysqlclient-dev krb5-multidev libapparmor-dev libbz2-dev libcap-dev libdb-dev libexpat-dev libexttextcat-dev libicu-dev libldap2-dev liblua5.4-dev liblz4-dev liblzma-dev libpam0g-dev libpq-dev libsasl2-dev libsodium-dev libsqlite3-dev libssl-dev libstemmer-dev libsystemd-dev libwrap0-dev libzstd-dev pkg-config zlib1g-dev git libunwind-dev rsync
4754
48-
- name: clone repository
49-
run: git clone https://github.com/chatmail/dovecot
55+
- uses: actions/checkout@v4
56+
with:
57+
path: dovecot
58+
show-progress: false
59+
fetch-depth: 0
5060

5161
- name: build
5262
run: |
5363
cd dovecot
64+
git rm -r .github
65+
git config --local user.name "test"
66+
git config --local user.email "[email protected]"
67+
git commit -am "CI: remove .github directory before building"
5468
DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-no-pristine-tar -us -uc
5569
5670
- name: upload .deb files

.github/workflows/build-staging-deb.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,20 @@ jobs:
2626
- name: build
2727
run: |
2828
cd dovecot
29+
git rm -r .github
30+
git config --local user.name "test"
31+
git config --local user.email "[email protected]"
32+
git commit -am "CI: remove .github directory before building"
2933
DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-no-pristine-tar --git-ignore-branch -us -uc
3034
3135
- name: upload .deb files
3236
run: |
3337
mkdir -p "$HOME/.ssh"
3438
echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
3539
chmod 600 "$HOME/.ssh/key"
36-
rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/build-area/ "${{ secrets.USERNAME }}@download.delta.chat:/var/www/html/download/dovecot/"
40+
export branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
41+
mv $GITHUB_WORKSPACE/build-area staging-$branch
42+
rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" staging-$branch "${{ secrets.USERNAME }}@download.delta.chat:/var/www/html/download/dovecot/"
3743
3844
staging-arm:
3945
runs-on: ubuntu-24.04-arm
@@ -54,13 +60,18 @@ jobs:
5460
- name: build
5561
run: |
5662
cd dovecot
63+
git rm -r .github
64+
git config --local user.name "test"
65+
git config --local user.email "[email protected]"
66+
git commit -am "CI: remove .github directory before building"
5767
DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-no-pristine-tar --git-ignore-branch -us -uc
5868
5969
- name: upload .deb files
6070
run: |
6171
mkdir -p "$HOME/.ssh"
6272
echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
6373
chmod 600 "$HOME/.ssh/key"
64-
mv $GITHUB_WORKSPACE/build-area staging-$GITHUB_REF_NAME
65-
rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" staging-$GITHUB_REF_NAME "${{ secrets.USERNAME }}@download.delta.chat:/var/www/html/download/dovecot/"
74+
export branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
75+
mv $GITHUB_WORKSPACE/build-area staging-$branch
76+
rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" staging-$branch "${{ secrets.USERNAME }}@download.delta.chat:/var/www/html/download/dovecot/"
6677

ChangeLog

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
2025-07-22 15:27:09 +0000 missytake <[email protected]> (429a5f971)
2-
3-
CI: build .deb and upload to download.delta.chat
4-
5-
6-
M .github/workflows/build-deb.yml
7-
M .github/workflows/build-deb-staging.yml
8-
91
2023-08-28 15:27:09 +0000 Marco Bettini <[email protected]> (47349e2482)
102

113
mail-crypt: mail_crypt_mailbox_allocated() - Force cross-user copies to

0 commit comments

Comments
 (0)