Skip to content
Snippets Groups Projects
Commit e0a33ffe authored by Alexander V. Tikhonov's avatar Alexander V. Tikhonov Committed by Kirill Yukhin
Browse files

github-ci: build packages for debian-bullseye

Added package workflow to github actions. Set deployment of the
packages for the master branch and tags.

Closes #5638
parent b2b1789a
No related branches found
No related tags found
No related merge requests found
name: debian_11
on: [push, pull_request]
env:
CI_MAKE: make -f .gitlab.mk
jobs:
debian_11:
# We want to run on external PRs, but not on our own internal PRs
# as they'll be run by the push to the branch.
if: github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
submodules: recursive
- name: packaging
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_ENDPOINT_URL: ${{ secrets.AWS_S3_ENDPOINT_URL }}
LIVE_REPO_S3_DIR: ${{ secrets.LIVE_REPO_S3_DIR }}
RELEASE_REPO_S3_DIR: ${{ secrets.RELEASE_REPO_S3_DIR }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_SIGN_KEY: ${{ secrets.GPG_SIGN_KEY }}
run: |
if ${{ github.event_name == 'push' &&
( github.ref == 'ref/head/master' ||
github.ref == 'ref/head/1.10' ||
startsWith(github.ref, 'refs/head/2.') ||
startsWith(github.ref, 'refs/tags') ) }} ; then
sudo apt-get -y update
sudo apt-get install -y procmail createrepo awscli reprepro
mkdir -p ~/.gnupg
echo 'digest-algo sha256' >> ~/.gnupg/gpg.conf
OS=debian DIST=bullseye ${CI_MAKE} deploy
else
OS=debian DIST=bullseye ${CI_MAKE} package
fi
- name: artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: debian-bullseye
retention-days: 1000000
path: test/var/artifacts
......@@ -26,7 +26,7 @@ function get_os_dists {
if [ "$os" == "ubuntu" ]; then
alldists='trusty xenial bionic disco eoan focal'
elif [ "$os" == "debian" ]; then
alldists='jessie stretch buster'
alldists='jessie stretch buster bullseye'
elif [ "$os" == "el" ]; then
alldists='6 7 8'
elif [ "$os" == "fedora" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment