From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [94.100.177.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 82F234765E3 for ; Mon, 28 Dec 2020 00:56:18 +0300 (MSK) From: "Alexander V. Tikhonov" Date: Mon, 28 Dec 2020 00:56:15 +0300 Message-Id: <92ad895ee839ea1688a056f88ed292e3035fcdca.1609106117.git.avtikhon@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v1] github-ci: build packages for debian-bullseye List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Turenko , Kirill Yukhin Cc: tarantool-patches@dev.tarantool.org Cc: tarantool-patches@dev.tarantool.org Added package workflow to github actions. Set deployment of the packages for the master branch and tags. Closes #5638 --- Github: https://github.com/tarantool/tarantool/tree/avtikhon/debian-11 Issue: https://github.com/tarantool/tarantool/issues/5638 This commit can be pushed only after commit: "build: allow packpack's build for Debian 11 (bullseye)" .github/workflows/package_deploy.yml | 74 ++++++++++++++++++++++++++++ tools/update_repo.sh | 2 +- 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/package_deploy.yml diff --git a/.github/workflows/package_deploy.yml b/.github/workflows/package_deploy.yml new file mode 100644 index 000000000..4caac5da1 --- /dev/null +++ b/.github/workflows/package_deploy.yml @@ -0,0 +1,74 @@ +name: package_deploy + +on: [push, pull_request] + +env: + CI_MAKE: make -f .gitlab.mk + +jobs: + # By default jobs on push and pull_request filters run duplicating each other. + # To avoid of it used additional external module 'skip-duplicate-actions'. + # Used option 'concurrent_skipping' to skip duplicating jobs. Check info: + # https://github.com/marketplace/actions/skip-duplicate-actions#concurrent_skipping + pre_job: + continue-on-error: true + runs-on: ubuntu-latest + # Map a step output to a job output + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@master + with: + # avoid of skipping previous jobs for outdated commits + cancel_others: 'false' + # avoid of duplicating runs on "push & pull_request" + concurrent_skipping: 'same_content' + + debian: + needs: pre_job + if: | + needs.pre_job.outputs.should_skip != 'true' || + github.event_name == 'push' + + runs-on: ubuntu-latest + + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + submodules: recursive + - name: Install packages required for publishing to S3 + run: | + sudo apt-get -y update + sudo apt-get install -y procmail createrepo awscli reprepro + - name: Import GPG key + run: | + mkdir -p ~/.gnupg + echo 'digest-algo sha256' >> ~/.gnupg/gpg.conf + #gpg --import <(echo "${{ secrets.GPG_KEY }}") + - name: test + 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' || startsWith(github.ref, 'refs/tags') ) }} ; then + 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 diff --git a/tools/update_repo.sh b/tools/update_repo.sh index edd13b4bc..5f7553827 100755 --- a/tools/update_repo.sh +++ b/tools/update_repo.sh @@ -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 -- 2.25.1