From 964b4f113a3441774b4c17a68f0959b8302f1057 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 27 Jan 2023 17:10:46 -0300 Subject: [PATCH 01/69] Create GHA Workflow --- .github/workflows/e2e.yml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/e2e.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 00000000..a23ceaff --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,40 @@ +name: Build Sofi-Sip + + +on: + push: + branches: [ master ] + +jobs: + + sofia_build: + name: 'Build' + uses: signalwire/actions-template/.github/workflows/ci-rpm-packages.yml@feat/packages + with: + PROJECT_NAME: sofia-sip + RUNNER: ubuntu-latest + PACKAGER: 'packager Andrey Volk ' + secrets: inherit + + sofia_distribute: + permissions: write-all + name: 'Sign & Distribute' + needs: sofia_build + uses: signalwire/actions-template/.github/workflows/cd-rpm-packages.yml@feat/packages + with: + TARGET_PATH: /var/test + RUNNER: ubuntu-latest + TARGET_FOLDER: x86_x64 + GPG_NAME: packages@freeswitch.org + FILES: 'rpms.tar.gz' + EXEC_COMMANDS: tar -zxvf /tmp/rpms.tar.gz + FILES_FOLDER: /tmp + secrets: + # Explicit define secrets for better understanding but it could be just inherit + PROXY_URL: ${{ secrets.PROXY_URL }} + USERNAME: ${{ secrets.USERNAME }} + HOSTNAME: ${{ secrets.HOSTNAME }} + GPG_KEY: ${{ secrets.GPG_PRIVATE }} + GPG_CERT: ${{ secrets.GPG_PUBLIC }} + TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }} + From 6d867cbafff0e598af90a0d394b7f3e10098d943 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 27 Jan 2023 17:12:21 -0300 Subject: [PATCH 02/69] Improve Workflow name --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index a23ceaff..69b2faa1 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,4 +1,4 @@ -name: Build Sofi-Sip +name: Build and Distribute Sofia-Sip on: From 7c5a3b2983dba6440acd7a231d2a43fb689014b1 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 27 Jan 2023 17:33:35 -0300 Subject: [PATCH 03/69] Improve Workflow by supporting matrix --- .github/workflows/e2e.yml | 47 +++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 69b2faa1..b2338a2f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -16,25 +16,34 @@ jobs: PACKAGER: 'packager Andrey Volk ' secrets: inherit - sofia_distribute: + distribute_matrix: permissions: write-all name: 'Sign & Distribute' needs: sofia_build - uses: signalwire/actions-template/.github/workflows/cd-rpm-packages.yml@feat/packages - with: - TARGET_PATH: /var/test - RUNNER: ubuntu-latest - TARGET_FOLDER: x86_x64 - GPG_NAME: packages@freeswitch.org - FILES: 'rpms.tar.gz' - EXEC_COMMANDS: tar -zxvf /tmp/rpms.tar.gz - FILES_FOLDER: /tmp - secrets: - # Explicit define secrets for better understanding but it could be just inherit - PROXY_URL: ${{ secrets.PROXY_URL }} - USERNAME: ${{ secrets.USERNAME }} - HOSTNAME: ${{ secrets.HOSTNAME }} - GPG_KEY: ${{ secrets.GPG_PRIVATE }} - GPG_CERT: ${{ secrets.GPG_PUBLIC }} - TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }} - + strategy: + matrix: + target_path: + - /var/www/repo/yum/centos-release/7 + - /var/www/fsa/repo/yum-stack/fsa/centos-release/7 + - /var/www/repo/yum/centos-dev/7 + - /var/www/fsa/repo/yum-stack/fsa/centos-dev/7 + steps: + - uses: signalwire/actions-template/.github/workflows/cd-rpm-packages.yml@feat/packages + with: + TARGET_PATH: ${{ matrix.target_path }} + RUNNER: ubuntu-latest + TARGET_FOLDER: x86_x64 + GPG_NAME: packages@freeswitch.org + FILES: 'rpms.tar.gz' + EXEC_COMMANDS: tar -zxvf /tmp/rpms.tar.gz -C / + FILES_FOLDER: /tmp + secrets: + # Explicit define secrets for better understanding but it could be just inherit + PROXY_URL: ${{ secrets.PROXY_URL }} + USERNAME: ${{ secrets.USERNAME }} + HOSTNAME: ${{ secrets.HOSTNAME }} + GPG_KEY: ${{ secrets.GPG_PRIVATE }} + GPG_CERT: ${{ secrets.GPG_PUBLIC }} + TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }} + + \ No newline at end of file From f3e45825a57e0af2051bdb29abf02e5c83322b05 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 27 Jan 2023 17:35:24 -0300 Subject: [PATCH 04/69] fix matrix to use reusable workflows --- .github/workflows/e2e.yml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b2338a2f..de6e4e7f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -27,23 +27,23 @@ jobs: - /var/www/fsa/repo/yum-stack/fsa/centos-release/7 - /var/www/repo/yum/centos-dev/7 - /var/www/fsa/repo/yum-stack/fsa/centos-dev/7 - steps: - - uses: signalwire/actions-template/.github/workflows/cd-rpm-packages.yml@feat/packages - with: - TARGET_PATH: ${{ matrix.target_path }} - RUNNER: ubuntu-latest - TARGET_FOLDER: x86_x64 - GPG_NAME: packages@freeswitch.org - FILES: 'rpms.tar.gz' - EXEC_COMMANDS: tar -zxvf /tmp/rpms.tar.gz -C / - FILES_FOLDER: /tmp - secrets: - # Explicit define secrets for better understanding but it could be just inherit - PROXY_URL: ${{ secrets.PROXY_URL }} - USERNAME: ${{ secrets.USERNAME }} - HOSTNAME: ${{ secrets.HOSTNAME }} - GPG_KEY: ${{ secrets.GPG_PRIVATE }} - GPG_CERT: ${{ secrets.GPG_PUBLIC }} - TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }} + + uses: signalwire/actions-template/.github/workflows/cd-rpm-packages.yml@feat/packages + with: + TARGET_PATH: ${{ matrix.target_path }} + RUNNER: ubuntu-latest + TARGET_FOLDER: x86_x64 + GPG_NAME: packages@freeswitch.org + FILES: 'rpms.tar.gz' + EXEC_COMMANDS: tar -zxvf /tmp/rpms.tar.gz -C / + FILES_FOLDER: /tmp + secrets: + # Explicit define secrets for better understanding but it could be just inherit + PROXY_URL: ${{ secrets.PROXY_URL }} + USERNAME: ${{ secrets.USERNAME }} + HOSTNAME: ${{ secrets.HOSTNAME }} + GPG_KEY: ${{ secrets.GPG_PRIVATE }} + GPG_CERT: ${{ secrets.GPG_PUBLIC }} + TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }} - \ No newline at end of file + \ No newline at end of file From 0a5392e6707eabf42f6c972ef5bdf1a0dead392f Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 27 Jan 2023 17:46:40 -0300 Subject: [PATCH 05/69] execute exec_command as sudo user --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index de6e4e7f..7e079e29 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -35,7 +35,7 @@ jobs: TARGET_FOLDER: x86_x64 GPG_NAME: packages@freeswitch.org FILES: 'rpms.tar.gz' - EXEC_COMMANDS: tar -zxvf /tmp/rpms.tar.gz -C / + EXEC_COMMANDS: sudo tar -zxvf /tmp/rpms.tar.gz -C / FILES_FOLDER: /tmp secrets: # Explicit define secrets for better understanding but it could be just inherit From a583887f76afb71d69f72fef72e75b3d176b1f5a Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 27 Jan 2023 18:36:10 -0300 Subject: [PATCH 06/69] improve workflows by removing duplicates --- .github/workflows/e2e.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 7e079e29..62f40c9d 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -34,9 +34,6 @@ jobs: RUNNER: ubuntu-latest TARGET_FOLDER: x86_x64 GPG_NAME: packages@freeswitch.org - FILES: 'rpms.tar.gz' - EXEC_COMMANDS: sudo tar -zxvf /tmp/rpms.tar.gz -C / - FILES_FOLDER: /tmp secrets: # Explicit define secrets for better understanding but it could be just inherit PROXY_URL: ${{ secrets.PROXY_URL }} From 740d169d36cf3aff42a796cf2e3dbea796f7430e Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 27 Jan 2023 18:45:29 -0300 Subject: [PATCH 07/69] bump ci From 4f012f00265484d7b522c5c63fbb170e72edc4a7 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 27 Jan 2023 18:58:02 -0300 Subject: [PATCH 08/69] bump ci From 54fd16ec634af45dc2dbb58614b738537800ed44 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Fri, 27 Jan 2023 19:05:04 -0300 Subject: [PATCH 09/69] bump ci From cc4c391b2466a771abb93fdcb1011e4e0c8b9cbc Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Mon, 30 Jan 2023 10:39:40 -0300 Subject: [PATCH 10/69] bump ci From 153fc559c27c754c5faf837b8d0c315e1fe78b96 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Mon, 30 Jan 2023 10:47:30 -0300 Subject: [PATCH 11/69] bump ci From ff153a527d735b4196a1134ce9f8c294c16980de Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Mon, 30 Jan 2023 10:56:10 -0300 Subject: [PATCH 12/69] bump ci From 3af094cfb719720747c522a3a7d83c16e4397369 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Mon, 30 Jan 2023 11:04:01 -0300 Subject: [PATCH 13/69] bump ci From 36c0c2fd3c833570ef8e87a38463c7b2c2a97ef2 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Mon, 30 Jan 2023 12:19:44 -0300 Subject: [PATCH 14/69] remove ref from feat to main branch --- .github/workflows/e2e.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 62f40c9d..8bf05ea9 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -9,7 +9,7 @@ jobs: sofia_build: name: 'Build' - uses: signalwire/actions-template/.github/workflows/ci-rpm-packages.yml@feat/packages + uses: signalwire/actions-template/.github/workflows/ci-rpm-packages.yml@main with: PROJECT_NAME: sofia-sip RUNNER: ubuntu-latest @@ -28,7 +28,7 @@ jobs: - /var/www/repo/yum/centos-dev/7 - /var/www/fsa/repo/yum-stack/fsa/centos-dev/7 - uses: signalwire/actions-template/.github/workflows/cd-rpm-packages.yml@feat/packages + uses: signalwire/actions-template/.github/workflows/cd-rpm-packages.yml@main with: TARGET_PATH: ${{ matrix.target_path }} RUNNER: ubuntu-latest From a41e7c17d5b1de15139318e6b2b1869c096b5bed Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Tue, 31 Jan 2023 16:37:38 -0300 Subject: [PATCH 15/69] replace cd action --- .github/workflows/e2e.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 8bf05ea9..3ae20f95 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -18,7 +18,7 @@ jobs: distribute_matrix: permissions: write-all - name: 'Sign & Distribute' + name: 'Copy to remote' needs: sofia_build strategy: matrix: @@ -28,19 +28,17 @@ jobs: - /var/www/repo/yum/centos-dev/7 - /var/www/fsa/repo/yum-stack/fsa/centos-dev/7 - uses: signalwire/actions-template/.github/workflows/cd-rpm-packages.yml@main + uses: signalwire/actions-template/.github/workflows/cd-scp.yml@feat/cd-scp with: - TARGET_PATH: ${{ matrix.target_path }} + ARTIFACT_NAME: rpm-artifact + TARGET_FOLDER: ${{ matrix.target_path }} RUNNER: ubuntu-latest - TARGET_FOLDER: x86_x64 - GPG_NAME: packages@freeswitch.org + FILES: '*.rpm' secrets: # Explicit define secrets for better understanding but it could be just inherit PROXY_URL: ${{ secrets.PROXY_URL }} USERNAME: ${{ secrets.USERNAME }} HOSTNAME: ${{ secrets.HOSTNAME }} - GPG_KEY: ${{ secrets.GPG_PRIVATE }} - GPG_CERT: ${{ secrets.GPG_PUBLIC }} TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }} \ No newline at end of file From d932b63543380a3d2fa403f6382ac5a60221f2f3 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Tue, 31 Jan 2023 16:38:21 -0300 Subject: [PATCH 16/69] replace cd action --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 3ae20f95..aa8bcf61 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -28,7 +28,7 @@ jobs: - /var/www/repo/yum/centos-dev/7 - /var/www/fsa/repo/yum-stack/fsa/centos-dev/7 - uses: signalwire/actions-template/.github/workflows/cd-scp.yml@feat/cd-scp + uses: signalwire/actions-template/.github/workflows/cd-scp.yml@feat/cd-ssh with: ARTIFACT_NAME: rpm-artifact TARGET_FOLDER: ${{ matrix.target_path }} From 0425c27380bab3cf00a200db2ce90c411b9337d4 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Tue, 31 Jan 2023 16:39:25 -0300 Subject: [PATCH 17/69] bump ci From 0b8694058773a67fdc0e7a6ddb8e1c1658b2d6b0 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 12:15:59 -0300 Subject: [PATCH 18/69] try a new file --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index aa8bcf61..42fa17e9 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -33,7 +33,7 @@ jobs: ARTIFACT_NAME: rpm-artifact TARGET_FOLDER: ${{ matrix.target_path }} RUNNER: ubuntu-latest - FILES: '*.rpm' + FILES: ./actions/.github/actions/teleport/action/tml secrets: # Explicit define secrets for better understanding but it could be just inherit PROXY_URL: ${{ secrets.PROXY_URL }} From 532bd4f7e8fa2f29071b3487f6b2c5bab7ab478d Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 14:46:45 -0300 Subject: [PATCH 19/69] upload based on pattern --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 42fa17e9..22c1e57d 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -33,7 +33,7 @@ jobs: ARTIFACT_NAME: rpm-artifact TARGET_FOLDER: ${{ matrix.target_path }} RUNNER: ubuntu-latest - FILES: ./actions/.github/actions/teleport/action/tml + FILES: '*.tar.gz' secrets: # Explicit define secrets for better understanding but it could be just inherit PROXY_URL: ${{ secrets.PROXY_URL }} From cba9a3f2e3d658e120c44459bc2eb34a696618a3 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 14:53:25 -0300 Subject: [PATCH 20/69] bump ci From 9fedbb81c3cbf37430b0df318adc35d507fbd37d Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 14:58:34 -0300 Subject: [PATCH 21/69] bump ci From 99a6c485170e0fff290569ae6a0a344805bb02ec Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 15:05:50 -0300 Subject: [PATCH 22/69] bump ci From fd2f276b4a3fe2f13a81aa23659ff7f5ed62c6d2 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 15:16:20 -0300 Subject: [PATCH 23/69] testing --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 22c1e57d..6c838ac5 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -33,7 +33,7 @@ jobs: ARTIFACT_NAME: rpm-artifact TARGET_FOLDER: ${{ matrix.target_path }} RUNNER: ubuntu-latest - FILES: '*.tar.gz' + FILES: *.tar.gz secrets: # Explicit define secrets for better understanding but it could be just inherit PROXY_URL: ${{ secrets.PROXY_URL }} From f4fdca228f8d8d186d96785f14e6784c41c90cea Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 15:34:02 -0300 Subject: [PATCH 24/69] bump ci From e0ca4cf9c37fd1e12e758406404531e9e61b39d2 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 15:36:19 -0300 Subject: [PATCH 25/69] testing --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 6c838ac5..22c1e57d 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -33,7 +33,7 @@ jobs: ARTIFACT_NAME: rpm-artifact TARGET_FOLDER: ${{ matrix.target_path }} RUNNER: ubuntu-latest - FILES: *.tar.gz + FILES: '*.tar.gz' secrets: # Explicit define secrets for better understanding but it could be just inherit PROXY_URL: ${{ secrets.PROXY_URL }} From 1a934bcd64ccf3b4d1d8c18b9c7448eb4fb63ddf Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 15:37:54 -0300 Subject: [PATCH 26/69] testing --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 22c1e57d..b0c6583d 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -9,7 +9,7 @@ jobs: sofia_build: name: 'Build' - uses: signalwire/actions-template/.github/workflows/ci-rpm-packages.yml@main + uses: signalwire/actions-template/.github/workflows/ci-rpm-packages.yml@feat/cd-ssh with: PROJECT_NAME: sofia-sip RUNNER: ubuntu-latest From f86b6bb18dc16ba8cf86df65edd49eb1ab6a7577 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 15:54:50 -0300 Subject: [PATCH 27/69] bump ci From bfa677a61abd052642b2f298850ad4c11eeb067d Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 16:01:11 -0300 Subject: [PATCH 28/69] bump ci From 0dcb02d474672d7cce33448b5ee3b187ee6a5fe4 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 16:13:17 -0300 Subject: [PATCH 29/69] bump ci From 045ac558620f15759b9d26d5dfb8db92781ddf37 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 16:13:27 -0300 Subject: [PATCH 30/69] bump ci From 0928ac89232cd45695a5ad9463cefc09f1070fe7 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 16:40:50 -0300 Subject: [PATCH 31/69] bump ci From ea59c2ec0d9fda1be0c2b16df9394662e1b46d5e Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 1 Feb 2023 17:26:17 -0300 Subject: [PATCH 32/69] edit default branch --- .github/workflows/e2e.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b0c6583d..9451e5e6 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,6 +1,5 @@ name: Build and Distribute Sofia-Sip - on: push: branches: [ master ] @@ -9,7 +8,7 @@ jobs: sofia_build: name: 'Build' - uses: signalwire/actions-template/.github/workflows/ci-rpm-packages.yml@feat/cd-ssh + uses: signalwire/actions-template/.github/workflows/ci-rpm-packages.yml@main with: PROJECT_NAME: sofia-sip RUNNER: ubuntu-latest @@ -28,7 +27,7 @@ jobs: - /var/www/repo/yum/centos-dev/7 - /var/www/fsa/repo/yum-stack/fsa/centos-dev/7 - uses: signalwire/actions-template/.github/workflows/cd-scp.yml@feat/cd-ssh + uses: signalwire/actions-template/.github/workflows/cd-scp.yml@main with: ARTIFACT_NAME: rpm-artifact TARGET_FOLDER: ${{ matrix.target_path }} @@ -40,5 +39,3 @@ jobs: USERNAME: ${{ secrets.USERNAME }} HOSTNAME: ${{ secrets.HOSTNAME }} TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }} - - \ No newline at end of file From c55a3cebc8cc1139a2f561b1a33c587f38361be9 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 2 Feb 2023 15:41:54 -0300 Subject: [PATCH 33/69] test checksum + unlock files after they --- .github/workflows/e2e.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9451e5e6..9c2d60c1 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -32,7 +32,8 @@ jobs: ARTIFACT_NAME: rpm-artifact TARGET_FOLDER: ${{ matrix.target_path }} RUNNER: ubuntu-latest - FILES: '*.tar.gz' + EXEC_COMMANDS: find ${{ matrix.target_path }} -type f -name "*.tar.gz" -exec mv "{}" "{}".unlocked \; + FILES: '*.tar.gz *.sha1' secrets: # Explicit define secrets for better understanding but it could be just inherit PROXY_URL: ${{ secrets.PROXY_URL }} From 589685bbd9d275bbc6aeba4e2ff95511695e8bed Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 15:34:44 -0300 Subject: [PATCH 34/69] init ci deb --- .github/workflows/deb.yml | 16 ++++++++++++++++ .github/workflows/{e2e.yml => rpm.yml} | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deb.yml rename .github/workflows/{e2e.yml => rpm.yml} (97%) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml new file mode 100644 index 00000000..8ec13a41 --- /dev/null +++ b/.github/workflows/deb.yml @@ -0,0 +1,16 @@ +name: Deb packages + +on: + push: + branches: [ master ] + +jobs: + + sofia_build: + name: 'Build' + uses: signalwire/actions-template/.github/workflows/ci-deb-packages.yml@feat/deb + with: + PROJECT_NAME: sofia-sip + RUNNER: ubuntu-latest + secrets: inherit + diff --git a/.github/workflows/e2e.yml b/.github/workflows/rpm.yml similarity index 97% rename from .github/workflows/e2e.yml rename to .github/workflows/rpm.yml index 9c2d60c1..4a833e5c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/rpm.yml @@ -1,4 +1,4 @@ -name: Build and Distribute Sofia-Sip +name: RPM packages on: push: From d3fc612831786cee685d4fad0bfde47e04e50041 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 15:51:18 -0300 Subject: [PATCH 35/69] bump ci From 02ee38658ffbf9372c16173dc5116d7a2c80196d Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 16:00:57 -0300 Subject: [PATCH 36/69] bump ci From 8087599fbe00c2f7d460989c427396ba443a70a9 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 16:06:05 -0300 Subject: [PATCH 37/69] bump ci From defd39d89c5bfffa1a40374f582e7735c6805cb2 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 16:44:16 -0300 Subject: [PATCH 38/69] setup debian changelog --- .github/workflows/deb.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index 8ec13a41..f7e6d241 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -12,5 +12,7 @@ jobs: with: PROJECT_NAME: sofia-sip RUNNER: ubuntu-latest + AUTHOR_EMAIL: lucas.carlos@signalwire.com + TARGET_BRANCH: master secrets: inherit From 30562207cb3c36544d063b5eca6e5447cf413fa7 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 16:45:49 -0300 Subject: [PATCH 39/69] bump ci From 4a485d2e967a455b7d422cd7ad7c99ec22d61f8f Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 16:56:47 -0300 Subject: [PATCH 40/69] bump ci From d2eb1fadf4a75362671893b87b9e55a737634d58 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 17:04:09 -0300 Subject: [PATCH 41/69] bump ci From a48784b876b5d621e2e3d34f58692b0aacad13f1 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 17:37:04 -0300 Subject: [PATCH 42/69] bump ci From c93dbc704e7cae8b33e0aedba90cf53d5ebf3264 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 17:39:33 -0300 Subject: [PATCH 43/69] add permissions --- .github/workflows/deb.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index f7e6d241..1a8931d4 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -7,6 +7,7 @@ on: jobs: sofia_build: + permissions: write-all name: 'Build' uses: signalwire/actions-template/.github/workflows/ci-deb-packages.yml@feat/deb with: From 15e5ed74a78ee7e743683d0f316e39b306299e11 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 17:41:32 -0300 Subject: [PATCH 44/69] bump ci From 329be91985e49dd54f1b7c74f2177df2ee27cbf7 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 17:48:13 -0300 Subject: [PATCH 45/69] remove permissions --- .github/workflows/deb.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index 1a8931d4..f7e6d241 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -7,7 +7,6 @@ on: jobs: sofia_build: - permissions: write-all name: 'Build' uses: signalwire/actions-template/.github/workflows/ci-deb-packages.yml@feat/deb with: From bd8b633650384eb29d768635b24577faec8480b5 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 17:51:39 -0300 Subject: [PATCH 46/69] configure secrets --- .github/workflows/deb.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index f7e6d241..5cc8820d 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -14,5 +14,6 @@ jobs: RUNNER: ubuntu-latest AUTHOR_EMAIL: lucas.carlos@signalwire.com TARGET_BRANCH: master - secrets: inherit + secrets: + PAT: ${{ secrets.PAT }} From 10e2017b348932146b3bb150d5a9b2e1e78cbc34 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 17:58:22 -0300 Subject: [PATCH 47/69] bump ci From fb1aa8f13f0523269554106adcc4548f42912d1e Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 18:07:21 -0300 Subject: [PATCH 48/69] bump ci From 59c86e07cac3a105e86b42b78b65bb1557c10618 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 18:12:53 -0300 Subject: [PATCH 49/69] bump ci From 0fee5d5c3198e7634966f9c15a713ed6f3661829 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 18:17:25 -0300 Subject: [PATCH 50/69] bump ci From 0322b369295135c9ed98b7cc0328ba092a1c8efd Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 18:25:18 -0300 Subject: [PATCH 51/69] bump ci From ad304fe267a610b50b64b35976f12b2d2972c717 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 18:32:48 -0300 Subject: [PATCH 52/69] bump ci From d691f19c0b7b5bedf4cff694b01cdbd904a83f4f Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 18:34:04 -0300 Subject: [PATCH 53/69] add permissions to create a pr --- .github/workflows/deb.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index 5cc8820d..8badc1f7 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -8,6 +8,7 @@ jobs: sofia_build: name: 'Build' + permissions: write-all uses: signalwire/actions-template/.github/workflows/ci-deb-packages.yml@feat/deb with: PROJECT_NAME: sofia-sip From 8d840c218854dd5ac50618af162b8b46bab87906 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 18:45:36 -0300 Subject: [PATCH 54/69] bump ci From cbf5667fb750456bc21178c92c235a0bca5b63de Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 18:53:35 -0300 Subject: [PATCH 55/69] replace action --- .github/workflows/deb.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index 8badc1f7..4bca69c6 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -17,4 +17,4 @@ jobs: TARGET_BRANCH: master secrets: PAT: ${{ secrets.PAT }} - + \ No newline at end of file From 67bca2e1391643f0b2a6d40249879b57a3d4d14d Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 18:55:23 -0300 Subject: [PATCH 56/69] bump ci From 2b0e6881bad786caf381832a838437e20c776b5e Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 20:45:50 -0300 Subject: [PATCH 57/69] bump ci From 2df1105c4969a731cebb45326f9e89f13be46fcf Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 21:00:22 -0300 Subject: [PATCH 58/69] support for multi-stage builds --- .github/workflows/deb.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index 4bca69c6..a55201e7 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -15,6 +15,33 @@ jobs: RUNNER: ubuntu-latest AUTHOR_EMAIL: lucas.carlos@signalwire.com TARGET_BRANCH: master + OS_FAMILIES: stretch,bullseye,buster secrets: PAT: ${{ secrets.PAT }} - \ No newline at end of file + + # distribute_matrix: + # permissions: write-all + # name: 'Copy to remote' + # needs: sofia_build + # strategy: + # matrix: + # target_path: + # - /var/www/fsa/repo/deb/fsa/incoming + # - /var/www/fsa/repo/debian/release/incoming + # - /var/www/fsa/repo/debian/unstable/incoming + # - /var/www/repo/deb/freeswitch-1.8/incoming + # - /var/www/deb-public-unstable/incoming + + # uses: signalwire/actions-template/.github/workflows/cd-scp.yml@main + # with: + # ARTIFACT_NAME: rpm-artifact + # TARGET_FOLDER: ${{ matrix.target_path }} + # RUNNER: ubuntu-latest + # EXEC_COMMANDS: find ${{ matrix.target_path }} -type f -name "*.tar.gz" -exec mv "{}" "{}".unlocked \; + # FILES: '*.tar.gz *.sha1' + # secrets: + # # Explicit define secrets for better understanding but it could be just inherit + # PROXY_URL: ${{ secrets.PROXY_URL }} + # USERNAME: ${{ secrets.USERNAME }} + # HOSTNAME: ${{ secrets.HOSTNAME }} + # TELEPORT_TOKEN: ${{ secrets.TELEPORT_TOKEN }} \ No newline at end of file From a1031e6e33ae79da98e999a797a48b616087ddb0 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 21:04:30 -0300 Subject: [PATCH 59/69] bump ci From dcf4b5df1fde0d8973aa6c417657e815c27de3ce Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 21:31:00 -0300 Subject: [PATCH 60/69] bump ci From 454e56adbc3e00f97a32a8e854e40aaf45314de7 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Thu, 9 Feb 2023 21:38:28 -0300 Subject: [PATCH 61/69] bump ci From add81388c6aea2d37f4600b00108e3bb476e674a Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 8 Mar 2023 16:44:11 -0300 Subject: [PATCH 62/69] test v2 release --- .github/workflows/deb.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index a55201e7..5b7a003f 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -8,16 +8,24 @@ jobs: sofia_build: name: 'Build' - permissions: write-all - uses: signalwire/actions-template/.github/workflows/ci-deb-packages.yml@feat/deb + uses: signalwire/actions-template/.github/workflows/ci-deb-packages-v2.yml@feat/ci-deb + strategy: + matrix: + BASE_IMAGE: + - debian:bullseye-20210927 + - debian:buster + - debian:strech + PLATFORM: + - arm64 + - amd64 with: PROJECT_NAME: sofia-sip RUNNER: ubuntu-latest - AUTHOR_EMAIL: lucas.carlos@signalwire.com - TARGET_BRANCH: master - OS_FAMILIES: stretch,bullseye,buster - secrets: - PAT: ${{ secrets.PAT }} + # AUTHOR_EMAIL: lucas.carlos@signalwire.com + # TARGET_BRANCH: master + # OS_FAMILIES: stretch,bullseye,buster + # secrets: + # PAT: ${{ secrets.PAT }} # distribute_matrix: # permissions: write-all From 26166fd93124f6f882b2b57ef6911634edd02456 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 8 Mar 2023 16:45:36 -0300 Subject: [PATCH 63/69] enable workflow dispatch --- .github/workflows/deb.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index 5b7a003f..1d26bdb3 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -3,6 +3,7 @@ name: Deb packages on: push: branches: [ master ] + workflow_dispatch: jobs: From 6783aa0a341e1f41bd051c887e032c2db514dce2 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 8 Mar 2023 16:47:17 -0300 Subject: [PATCH 64/69] fix inputs --- .github/workflows/deb.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index 1d26bdb3..a493ecf3 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -22,6 +22,8 @@ jobs: with: PROJECT_NAME: sofia-sip RUNNER: ubuntu-latest + BASE_IMAGE: ${{matrix.BASE_IMAGE}} + PLATFORM: ${{matrix.PLATFORM}} # AUTHOR_EMAIL: lucas.carlos@signalwire.com # TARGET_BRANCH: master # OS_FAMILIES: stretch,bullseye,buster From adf7aa7d4e756e63ee65697cb14de8bd66ee97dd Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 8 Mar 2023 17:41:17 -0300 Subject: [PATCH 65/69] disable fail-fast --- .github/workflows/deb.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index a493ecf3..b262d69e 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -11,6 +11,7 @@ jobs: name: 'Build' uses: signalwire/actions-template/.github/workflows/ci-deb-packages-v2.yml@feat/ci-deb strategy: + fail-fast: false matrix: BASE_IMAGE: - debian:bullseye-20210927 From 11e26397a76c5b163945467247e374c76f7dd82f Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 8 Mar 2023 17:52:28 -0300 Subject: [PATCH 66/69] update build-deps --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 269e91e8..0935a176 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: sofia-sip Section: net Priority: optional Maintainer: FreeSWITCH Solutions -Build-Depends: debhelper (>= 9), pkg-config, libglib2.0-dev, libssl1.0-dev | libssl-dev, +Build-Depends: debhelper (>= 9), pkg-config, libglib2.0-dev, libssl1.1 | libssl-dev, dpkg-dev (>= 1.13.19) Build-Depends-Indep: doxygen, graphviz, Standards-Version: 3.9.6 From e33cb483b756bff07798abba4e342881024595a7 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 8 Mar 2023 17:58:45 -0300 Subject: [PATCH 67/69] update max-parallel --- .github/workflows/deb.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index b262d69e..607cdd8d 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -12,6 +12,7 @@ jobs: uses: signalwire/actions-template/.github/workflows/ci-deb-packages-v2.yml@feat/ci-deb strategy: fail-fast: false + max-parallel: 2 matrix: BASE_IMAGE: - debian:bullseye-20210927 From 4cc69a89244679400bdf959313b1e3ea9414d9ce Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 8 Mar 2023 18:08:35 -0300 Subject: [PATCH 68/69] fix deps --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 0935a176..269e91e8 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: sofia-sip Section: net Priority: optional Maintainer: FreeSWITCH Solutions -Build-Depends: debhelper (>= 9), pkg-config, libglib2.0-dev, libssl1.1 | libssl-dev, +Build-Depends: debhelper (>= 9), pkg-config, libglib2.0-dev, libssl1.0-dev | libssl-dev, dpkg-dev (>= 1.13.19) Build-Depends-Indep: doxygen, graphviz, Standards-Version: 3.9.6 From c8b1d1f25cf1522ba31b2a031a880ef76f2665db Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 8 Mar 2023 18:20:31 -0300 Subject: [PATCH 69/69] temporarily disable arm64 builds --- .github/workflows/deb.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml index 607cdd8d..a83cda22 100644 --- a/.github/workflows/deb.yml +++ b/.github/workflows/deb.yml @@ -19,7 +19,7 @@ jobs: - debian:buster - debian:strech PLATFORM: - - arm64 + # - arm64 - amd64 with: PROJECT_NAME: sofia-sip