restore EZMLM_ETC, EZMLMQUEUE, QMAILQUEUE after envdir #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ezmlm-idx obs trigger | |
on: | |
push: | |
paths: | |
- '**/ezmlm-idx-x/**' | |
- '**/prepare_obs' | |
- '**/catChangeLog' | |
- .github/workflows/ezmlm-idx-obs.yml | |
- '!**/doc/*' | |
- '!**.md' | |
- '!**/ezmlm-idx-freebsd.yml' | |
- '!**/ezmlm-idx-c-cpp.yml' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout_ezmlm-idx | |
uses: actions/checkout@v2 | |
- name: checkout_qmail | |
uses: actions/checkout@v2 | |
with: | |
repository: mbhangui/libqmail | |
path: libqmail | |
- name: install_qmail | |
run: | | |
sudo apt-get update; sudo apt-get install libssl-dev libmysqlclient-dev | |
cd libqmail; ./default.configure; make; sudo make install-strip | |
- name: prepare obs | |
run: cd ezmlm-idx-x; ./prepare_obs ezmlm-idx | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ezmlm-idx | |
path: ~/stage | |
- shell: bash | |
name: trigger_obs | |
run: | | |
# create ssh environment | |
mkdir ~/.ssh | |
echo "${{secrets.sf_private_key}}" > ~/.private_key | |
chmod 600 ~/.private_key | |
echo "${{secrets.sf_known_hosts}}" > ~/.ssh/known_hosts | |
# create gpg environment | |
echo "Importing gpg key" | |
echo "${{secrets.software_key}}" | gpg --batch --import | |
echo "Listing gpg key" | |
gpg --list-secret-keys --keyid-format LONG | |
# create archive and transfer | |
cd ~/stage | |
tar cvfz $GITHUB_WORKSPACE/ezmlm-idx-obs.tar.gz * | |
# create detached signature for obs archive | |
echo "${{secrets.software_passphrase}}" | gpg2 --pinentry-mode loopback \ | |
--passphrase-fd 0 --default-key "${{secrets.software_user}}" \ | |
-o ezmlm-idx-obs.sig --detach-sig $GITHUB_WORKSPACE/ezmlm-idx-obs.tar.gz | |
# copy to /home/frs/project/indimail | |
scp -q -i ~/.private_key $GITHUB_WORKSPACE/ezmlm-idx-obs.tar.gz \ | |
~/stage/ezmlm-idx-obs.sig "${{secrets.sf_user}}:${{secrets.sf_upload_path}}" | |
rm -f ~/.private_key ~/.ssh/known_hosts $GITHUB_WORKSPACE/ezmlm-idx-obs.tar.gz | |
rm -rf ~/stage |