summaryrefslogtreecommitdiffstats
path: root/.github/workflows/updater.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:04 +0000
commite970e0b37b8bd7f246feb3f70c4136418225e434 (patch)
tree0b67c0ca45f56f2f9d9c5c2e725279ecdf52d2eb /.github/workflows/updater.yml
parentAdding upstream version 1.31.0. (diff)
downloadnetdata-e970e0b37b8bd7f246feb3f70c4136418225e434.tar.xz
netdata-e970e0b37b8bd7f246feb3f70c4136418225e434.zip
Adding upstream version 1.32.0.upstream/1.32.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/updater.yml')
-rw-r--r--.github/workflows/updater.yml85
1 files changed, 0 insertions, 85 deletions
diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml
deleted file mode 100644
index 5f8d77c4a..000000000
--- a/.github/workflows/updater.yml
+++ /dev/null
@@ -1,85 +0,0 @@
----
-name: Updater
-on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
-
-jobs:
- source-build:
- name: Install, Build & Update
- strategy:
- fail-fast: false
- max-parallel: 8
- matrix:
- distro:
- - 'alpine:3.12'
- - 'alpine:3.13'
- - 'archlinux:latest'
- - 'centos:7'
- - 'centos:8'
- - 'clearlinux:latest'
- - 'debian:9'
- - 'debian:10'
- - 'fedora:33'
- - 'fedora:34'
- - 'ubuntu:16.04'
- - 'ubuntu:18.04'
- - 'ubuntu:20.04'
- - 'ubuntu:20.10'
- - 'ubuntu:21.04'
- include:
- - distro: 'alpine:3.12'
- pre: 'apk add -U bash'
- - distro: 'alpine:3.13'
- pre: 'apk add -U bash'
- - distro: 'debian:9'
- pre: 'apt-get update'
- - distro: 'debian:10'
- pre: 'apt-get update'
- - distro: 'ubuntu:16.04'
- pre: 'apt-get update'
- - distro: 'ubuntu:18.04'
- pre: 'apt-get update'
- - distro: 'ubuntu:20.04'
- pre: 'apt-get update'
- - distro: 'ubuntu:20.10'
- pre: 'apt-get update'
- - distro: 'ubuntu:21.04'
- pre: 'apt-get update'
- runs-on: ubuntu-latest
- steps:
- - name: Git clone repository
- uses: actions/checkout@v2
- with:
- submodules: recursive
- - name: Install required packages & build tarball
- run: |
- ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata-all
- .github/scripts/build-dist.sh
- - name: Run a dockerised web server to serve files used by the custom update script
- run: |
- docker run -dit --name my-apache-app -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4
- - name: Replace URLs in updater script to point at the local web server
- run: |
- ORIG_TARBALL="export NETDATA_TARBALL_URL=.*"
- ORIG_CHECKSUM="export NETDATA_TARBALL_CHECKSUM_URL=.*"
- CURRENT_VERSION="current_version=.*"
- NEW_TARBALL="export NETDATA_TARBALL_URL=http://localhost:8080/artifacts/netdata-latest.tar.gz"
- NEW_CHECKSUM="export NETDATA_TARBALL_CHECKSUM_URL=http://localhost:8080/artifacts/sha256sums.txt"
- sed -i "s|${ORIG_TARBALL}|${NEW_TARBALL}|g" packaging/installer/netdata-updater.sh
- sed -i "s|${ORIG_CHECKSUM}|${NEW_CHECKSUM}|g" packaging/installer/netdata-updater.sh
- sed -i "s|"current_version=.*"|"current_version=1"|g" packaging/installer/netdata-updater.sh
- - name: Install netdata and run the updater on ${{ matrix.distro }}
- env:
- PRE: ${{ matrix.pre }}
- run: |
- echo $PRE > ./prep-cmd.sh
- docker build . -f .github/dockerfiles/Dockerfile.build_test -t test --build-arg BASE=${{ matrix.distro }}
- docker run --network host -w /netdata test \
- /bin/sh -c '/netdata/packaging/installer/kickstart.sh --dont-wait \
- && /netdata/packaging/installer/netdata-updater.sh --not-running-from-cron --no-updater-self-update \
- && bash /netdata/.github/scripts/check-updater.sh'