From 980d7676b97e130b68f945e363e7e8ee08274a33 Mon Sep 17 00:00:00 2001
From: VitaliyaIoffe <vitaioffe@yandex.ru>
Date: Tue, 25 May 2021 17:19:05 +0300
Subject: [PATCH] github-ci: add ubuntu groovy (20.10) workflow

Add ubuntu-groovy workflow, which runs on push and pull-requests.
Fix lintian globbing-patterns-out-of-order warnings.

Part of: #5824
---
 .github/workflows/ubuntu_20_10.yml | 59 ++++++++++++++++++++++++++++++
 debian/copyright                   | 24 ++++++------
 2 files changed, 71 insertions(+), 12 deletions(-)
 create mode 100644 .github/workflows/ubuntu_20_10.yml

diff --git a/.github/workflows/ubuntu_20_10.yml b/.github/workflows/ubuntu_20_10.yml
new file mode 100644
index 0000000000..c6f6b1d956
--- /dev/null
+++ b/.github/workflows/ubuntu_20_10.yml
@@ -0,0 +1,59 @@
+name: ubuntu_20_10
+
+on:
+  push:
+  pull_request:
+  repository_dispatch:
+    types: [backend_automation]
+  workflow_dispatch:
+
+jobs:
+  ubuntu_20_10:
+    # 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 ) &&
+        ! endsWith(github.ref, '-notest')
+
+    runs-on: ubuntu-20.04
+
+    strategy:
+      fail-fast: false
+
+    steps:
+      # Permissions correction is needed for self-host runners,
+      # where work path is saved between different workflows runs.
+      - name: correct permissions in working directory
+        shell: bash
+        run: |
+          sudo chown -R $(id -u):$(id -g) .
+      - uses: actions/checkout@v2.3.4
+        with:
+          fetch-depth: 0
+          submodules: recursive
+      - uses: ./.github/actions/environment
+      - 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 }}
+          OS: 'ubuntu'
+          DIST: 'groovy'
+        uses: ./.github/actions/pack_and_deploy
+      - name: call action to send Telegram message on failure
+        env:
+          TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_CORE_TOKEN }}
+          TELEGRAM_TO: ${{ secrets.TELEGRAM_CORE_TO }}
+        uses: ./.github/actions/send-telegram-notify
+        if: failure()
+      - name: artifacts
+        uses: actions/upload-artifact@v2
+        if: failure()
+        with:
+          name: ubuntu-groovy
+          retention-days: 21
+          path: build/usr/src/*/tarantool-*/test/var/artifacts
diff --git a/debian/copyright b/debian/copyright
index 3d68dc3904..4cb15b78d6 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,6 +3,18 @@ Upstream-Name: tarantool
 Upstream-Contact: dev@tarantool.org
 Source: https://github.com/tarantool/tarantool
 
+Files: *
+Copyright: 2010-2015 Tarantool AUTHORS:
+    Aleksandr Lyapunov, Aleksey Demakov, Aleksey Mashanov,
+    Alexandre Kalendarev, Andrey Drozdov, Anton Barabanov,
+    Damien Lefortier,  Dmitry E. Oboukhov, Dmitry Simonenko,
+    Eugene Blikh, Eugene Shadrin, Konstantin Knizhnik, Konstantin Osipov,
+    Konstantin Shulgin, Mons Anderson, Marko Kevac, Oleg Tsarev,
+    Pavel Cherenkov, Roman Antipin, Roman Tokarev, Roman Tsisyk,
+    Teodor Sigaev, Timofey Khryukin, Veniamin Gvozdikov, Vassiliy Soshnikov,
+    Vladimir Rudnyh, Yuriy Nevinitsin, Yuriy Vostrikov
+License: BSD-2-Clause
+
 Files: third_party/libev/* third_party/coro/* third_party/libeio/*
 Copyright: 2007-2012 Marc Alexander Lehmann.
 License: BSD-2-Clause or GPL-2+
@@ -263,18 +275,6 @@ Files: src/proc_title.c
 Copyright: 2000-2010, PostgreSQL Global Development Group
 License: BSD-2-Clause
 
-Files: *
-Copyright: 2010-2015 Tarantool AUTHORS:
-    Aleksandr Lyapunov, Aleksey Demakov, Aleksey Mashanov,
-    Alexandre Kalendarev, Andrey Drozdov, Anton Barabanov,
-    Damien Lefortier,  Dmitry E. Oboukhov, Dmitry Simonenko,
-    Eugene Blikh, Eugene Shadrin, Konstantin Knizhnik, Konstantin Osipov,
-    Konstantin Shulgin, Mons Anderson, Marko Kevac, Oleg Tsarev,
-    Pavel Cherenkov, Roman Antipin, Roman Tokarev, Roman Tsisyk,
-    Teodor Sigaev, Timofey Khryukin, Veniamin Gvozdikov, Vassiliy Soshnikov,
-    Vladimir Rudnyh, Yuriy Nevinitsin, Yuriy Vostrikov
-License: BSD-2-Clause
-
 License: BSD-2-Clause
  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions
-- 
GitLab