From: "Alexander V. Tikhonov" <avtikhon@tarantool.org> To: Alexander Turenko <alexander.turenko@tarantool.org>, Kirill Yukhin <kyukhin@tarantool.org> Cc: tarantool-patches@dev.tarantool.org Subject: [Tarantool-patches] [PATCH v1] github-ci: build packages for debian-bullseye Date: Mon, 28 Dec 2020 00:56:15 +0300 [thread overview] Message-ID: <92ad895ee839ea1688a056f88ed292e3035fcdca.1609106117.git.avtikhon@tarantool.org> (raw) 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
reply other threads:[~2020-12-27 21:56 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=92ad895ee839ea1688a056f88ed292e3035fcdca.1609106117.git.avtikhon@tarantool.org \ --to=avtikhon@tarantool.org \ --cc=alexander.turenko@tarantool.org \ --cc=kyukhin@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v1] github-ci: build packages for debian-bullseye' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox