[pkg-nagios-changes] [Git][nagios-team/pkg-monitoring-plugins][master] 5 commits: Adding CI

Jan Wagner gitlab at salsa.debian.org
Fri Dec 4 11:27:22 GMT 2020



Jan Wagner pushed to branch master at Debian Nagios Maintainer Group / pkg-monitoring-plugins


Commits:
e44da077 by Jan Wagner at 2020-11-08T15:15:17+01:00
Adding CI

- - - - -
7065705c by Jan Wagner at 2020-11-08T15:21:20+01:00
Removing .travis.yml

- - - - -
357f3cc1 by waja at 2020-11-08T15:22:35+01:00
Merge pull request #6 from waja/github_ci

Adding CI
- - - - -
23a92bf1 by Jan Wagner at 2020-11-08T15:23:07+01:00
Remove debugging in ci workflow

- - - - -
2d5aec31 by Jan Wagner at 2020-12-04T12:25:29+01:00
Merge branch 'master' of salsa.debian.org:nagios-team/pkg-monitoring-plugins into development

- - - - -


3 changed files:

- + .github/workflows/packaging_test.yml
- + .github/workflows/release.yml
- − .travis.yml


Changes:

=====================================
.github/workflows/packaging_test.yml
=====================================
@@ -0,0 +1,32 @@
+name: Packaging Test
+
+on:
+  push:
+    branches:
+      - $default-branch
+      - development
+      - master
+  # Run tests for any PRs
+  pull_request:
+
+env:
+  SOURCE_DIR: ./
+  ARTIFACTS_DIR: debian/build/release/
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout at v2
+      env:
+        DEBIAN_FRONTEND: "noninteractive"
+    - name: Remove github artefacts
+      run: |
+        rm -rf .github/
+    - name: Adjust distibution in changelog file
+      run: |
+        sed -i '0,/restricted/s//stable/' debian/changelog
+    - name: Build Debian package
+      uses: pi-top/action-debian-package at v4
+      with:
+        artifacts_directory: debian/build/release/


=====================================
.github/workflows/release.yml
=====================================
@@ -0,0 +1,66 @@
+on:
+  push:
+    # Sequence of patterns matched against refs/tags
+    tags:
+      - 'debian/*' # Push events to matching debian/*, i.e. debian/1.0-2, debian/20.15.10, debian/23.20020326
+
+name: Release Process
+
+env:
+  SOURCE_DIR: ./
+  ARTIFACTS_DIR: debian/build/release/
+
+jobs:
+  create-release:
+    name: Create Release
+    runs-on: ubuntu-latest
+    outputs:
+      release-id: ${{ steps.create_release.outputs.id }}
+    steps:
+      - name: Checkout code
+        uses: actions/checkout at v2
+      - name: Install needed packages
+        run: |
+          if [ $(dpkg -l | grep -c dpkg-dev) -ne 1 ]; then sudo apt-get update && sudo apt-get install -y dpkg-dev; fi
+      - name: Gather changelog
+        run: |
+          ls -la
+          dpkg-parsechangelog | tail -n +9 > debian.changelog
+      - name: Create Release
+        id: create_release
+        uses: actions/create-release at v1
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
+        with:
+          tag_name: ${{ github.ref }}
+          release_name: Release ${{ github.ref }}
+          body_path: debian.changelog
+          draft: false
+          prerelease: false
+
+  build:
+    name: Build and upload packages
+    needs: create-release
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout at v2
+      env:
+        DEBIAN_FRONTEND: "noninteractive"
+    - name: Remove github artefacts
+      run: |
+        rm -rf .github/
+    - name: Adjust distibution in changelog file
+      run: |
+        sed -i '0,/restricted/s//stable/' debian/changelog
+    - name: Build Debian package
+      uses: pi-top/action-debian-package at v4
+      with:
+        artifacts_directory: debian/build/release/
+        target_architectures: "amd64,i386"
+    - name: Upload the artifacts
+      uses: skx/github-action-publish-binaries at master
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      with:
+        releaseId: ${{ needs.create-release.outputs.release-id }}
+        args: debian/build/release/*


=====================================
.travis.yml deleted
=====================================
@@ -1,24 +0,0 @@
-sudo: required
-dist: xenial
-
-matrix:
-  include:
-  - env: TRAVIS_DEBIAN_DISTRIBUTION=unstable
-  - env: TRAVIS_DEBIAN_DISTRIBUTION=testing
-  - env: TRAVIS_DEBIAN_DISTRIBUTION=stable
-  allow_failures:
-  - env: TRAVIS_DEBIAN_DISTRIBUTION=stable
-
-services:
-  - docker
-
-script:
-  # build the debian package
-  - wget -O- http://travis.debian.net/script.sh | sh -
-
-#notifications:
-#  email: false
-
-branches:
-  except:
-    - /^debian\/\d/



View it on GitLab: https://salsa.debian.org/nagios-team/pkg-monitoring-plugins/-/compare/4ddc077376aa5370c5774b4fbf0efb9c7cea0b10...2d5aec31af45dc29ff5188671e4fcdb70f69006d

-- 
View it on GitLab: https://salsa.debian.org/nagios-team/pkg-monitoring-plugins/-/compare/4ddc077376aa5370c5774b4fbf0efb9c7cea0b10...2d5aec31af45dc29ff5188671e4fcdb70f69006d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20201204/cce69617/attachment-0001.html>


More information about the pkg-nagios-changes mailing list