From c422f8b545640ff712c42a4de03173e50829e19f Mon Sep 17 00:00:00 2001 From: rdubois Date: Thu, 1 Aug 2024 13:46:23 +0200 Subject: [PATCH] feat(ci/cd): use our own runner image DEVOPS-77 --- .github/workflows/deb-test.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/deb.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/deb-test.yml create mode 100644 .github/workflows/deb.yml diff --git a/.github/workflows/deb-test.yml b/.github/workflows/deb-test.yml new file mode 100644 index 0000000..d56ccd4 --- /dev/null +++ b/.github/workflows/deb-test.yml @@ -0,0 +1,28 @@ +name: Deb build push notify +on: + push: + branches: + - dev-test + workflow_dispatch: + +jobs: + deb: + runs-on: gha-runners-teleservices + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set package version variable + shell: bash + run: | + echo VERSION=$(cat setup.py | grep "version =" | cut -d '"' -f 2 && echo "-" && date "+%Y%m%d%H%M%S" && echo "~" && echo ${{ github.sha }} | cut -c1-7 ) | tr -d [:space:] >> $GITHUB_ENV + - name: Deb build push and notify + uses: IMIO/gha/deb-build-push-notify@v3.7.2 + with: + REPOSITORY_URL: ${{ secrets.NEXUS_BOOKWORM_TEST_URL }} + REPOSITORY_LOGIN: ${{ secrets.NEXUS_LOGIN }} + REPOSITORY_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} + PACKAGE_NAME: ${{ github.event.repository.name }} + PACKAGE_VERSION: ${{ env.VERSION }} + SIGNER_KEY_PASSPHRASE: ${{ secrets.DEB_SIGNER_PASSPHRASE }} + SIGNER_KEY: ${{ secrets.DEB_SIGNER_KEY }} + MATTERMOST_WEBHOOK_URL: ${{ secrets.TELESERVICES_MATTERMOST_WEBHOOK_URL }} diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.yml new file mode 100644 index 0000000..029c13c --- /dev/null +++ b/.github/workflows/deb.yml @@ -0,0 +1,28 @@ +name: Deb build push notify +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + deb: + runs-on: gha-runners-teleservices + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set package version variable + shell: bash + run: | + echo VERSION=$(cat setup.py | grep "version =" | cut -d '"' -f 2 && echo "-" && date "+%Y%m%d%H%M%S" && echo "~" && echo ${{ github.sha }} | cut -c1-7 ) | tr -d [:space:] >> $GITHUB_ENV + - name: Deb build push and notify + uses: IMIO/gha/deb-build-push-notify@v3.7.2 + with: + REPOSITORY_URL: ${{ secrets.NEXUS_BOOKWORM_URL }} + REPOSITORY_LOGIN: ${{ secrets.NEXUS_LOGIN }} + REPOSITORY_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} + PACKAGE_NAME: ${{ github.event.repository.name }} + PACKAGE_VERSION: ${{ env.VERSION }} + SIGNER_KEY_PASSPHRASE: ${{ secrets.DEB_SIGNER_PASSPHRASE }} + SIGNER_KEY: ${{ secrets.DEB_SIGNER_KEY }} + MATTERMOST_WEBHOOK_URL: ${{ secrets.TELESERVICES_MATTERMOST_WEBHOOK_URL }}