[pkg-nagios-changes] [Git][nagios-team/pkg-nagios-snmp-plugins][master] 2 commits: Adding Github CI

Jan Wagner gitlab at salsa.debian.org
Thu Feb 4 20:35:25 GMT 2021



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


Commits:
4ffef412 by Jan Wagner at 2020-12-27T23:42:17+01:00
Adding Github CI

- - - - -
071a540a by Jan Wagner at 2021-02-04T21:32:46+01:00
Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, Repository-Browse.

Changes-By: lintian-brush
Fixes: lintian: upstream-metadata-file-is-missing
See-also: https://lintian.debian.org/tags/upstream-metadata-file-is-missing.html
Fixes: lintian: upstream-metadata-missing-bug-tracking
See-also: https://lintian.debian.org/tags/upstream-metadata-missing-bug-tracking.html
Fixes: lintian: upstream-metadata-missing-repository
See-also: https://lintian.debian.org/tags/upstream-metadata-missing-repository.html

- - - - -


3 changed files:

- + .github/workflows/packaging_test.yml
- + .github/workflows/release.yml
- + debian/upstream/metadata


Changes:

=====================================
.github/workflows/packaging_test.yml
=====================================
@@ -0,0 +1,35 @@
+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 .git*
+    - name: Adjust distibution in changelog file
+      run: |
+        sed -i '0,/restricted/s//stable/' debian/changelog
+    - name: Build Debian package
+      uses: dawidd6/action-debian-package at v1
+      with:
+        artifacts_directory: debian/build/release/
+    - name: Debug
+      run: |
+        ls -la


=====================================
.github/workflows/release.yml
=====================================
@@ -0,0 +1,70 @@
+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 .git*
+    - name: Adjust distibution in changelog file
+      run: |
+        sed -i '0,/restricted/s//stable/' debian/changelog
+    - name: Build Debian package
+      uses: dawidd6/action-debian-package at v1
+      with:
+        artifacts_directory: debian/build/release/
+#    - name: Build Debian package
+#      uses: pi-top/action-debian-package at v0.2.0
+#      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/*


=====================================
debian/upstream/metadata
=====================================
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/SteScho/manubulon-snmp/issues
+Bug-Submit: https://github.com/SteScho/manubulon-snmp/issues/new
+Repository: https://github.com/SteScho/manubulon-snmp.git
+Repository-Browse: https://github.com/SteScho/manubulon-snmp



View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagios-snmp-plugins/-/compare/5579d164c7cc51c5b00db307b78086973eefd2fc...071a540a61970a79cfef82bebd96b6911703e0ad

-- 
View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagios-snmp-plugins/-/compare/5579d164c7cc51c5b00db307b78086973eefd2fc...071a540a61970a79cfef82bebd96b6911703e0ad
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/20210204/1af6989b/attachment-0001.html>


More information about the pkg-nagios-changes mailing list