Skip to content

Commit

Permalink
feat(ci/cd): use our own runner image
Browse files Browse the repository at this point in the history
DEVOPS-77
  • Loading branch information
remdub committed Aug 1, 2024
1 parent 8e999db commit 6b8849f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deb-test.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}
5 changes: 2 additions & 3 deletions .github/workflows/deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:

jobs:
deb:
runs-on:
group: self-hosted
runs-on: gha-runners-teleservices
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -17,7 +16,7 @@ jobs:
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@v1.1
uses: IMIO/gha/deb-build-push-notify@v3.7.2
with:
REPOSITORY_URL: ${{ secrets.NEXUS_BOOKWORM_URL }}
REPOSITORY_LOGIN: ${{ secrets.NEXUS_LOGIN }}
Expand Down

0 comments on commit 6b8849f

Please sign in to comment.