-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop centos 6 Drop netdata builds: they have separate infrastructure now
- Loading branch information
1 parent
d85da09
commit 5dd9b33
Showing
8 changed files
with
146 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
on: [ push, pull_request, workflow_dispatch ] | ||
|
||
jobs: | ||
prep: | ||
runs-on: ubuntu-latest | ||
name: Prepare build | ||
steps: | ||
- name: Extract tag/branch variables | ||
shell: bash | ||
run: | | ||
echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/}|grep -v '/')" | ||
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/}|grep -v '/')" | ||
id: extract | ||
outputs: | ||
tag: ${{ steps.extract.outputs.tag }} | ||
branch: ${{ steps.extract.outputs.branch }} | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
name: Build packages | ||
needs: prep | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up build tools | ||
run: ./.github/workflows/setup.sh | ||
- name: Run build | ||
run: | | ||
./setup.sh | ||
for i in build-*.sh | ||
do | ||
./$i || exit 1 | ||
done | ||
- name: Create checksums | ||
run: | | ||
cd output/packages | ||
for i in * | ||
do | ||
md5sum -b $i > ../checksums/$i.md5 | ||
sha512sum -b $i > ../checksums/$i.sha | ||
done | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-artifacts | ||
path: | | ||
output/packages/* | ||
output/checksums/* | ||
validate_build: | ||
runs-on: ubuntu-latest | ||
name: List build content if not tagged | ||
needs: [ prep, build ] | ||
if: ${{ needs.prep.outputs.tag == '' }} | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: build-artifacts | ||
- name: List artifacts | ||
run: ls -lR | ||
|
||
publish_tag: | ||
runs-on: ubuntu-latest | ||
name: Publish to github if tag | ||
needs: [ prep, build ] | ||
if: ${{ needs.prep.outputs.tag != '' }} | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: build-artifacts | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
- name: Upload packages | ||
uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const release_id = '${{ steps.create_release.outputs.id }}'; | ||
for (let file of await fs.readdirSync('./packages/')) { | ||
console.log('uploadReleaseAsset', file); | ||
await github.repos.uploadReleaseAsset({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
release_id: release_id, | ||
name: file, | ||
data: await fs.readFileSync(`./packages/${file}`) | ||
}); | ||
} | ||
- name: Upload checksums | ||
uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const release_id = '${{ steps.create_release.outputs.id }}'; | ||
for (let file of await fs.readdirSync('./checksums/')) { | ||
console.log('uploadReleaseAsset', file); | ||
await github.repos.uploadReleaseAsset({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
release_id: release_id, | ||
name: file, | ||
data: await fs.readFileSync(`./checksums/${file}`) | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -x | ||
|
||
sudo apt install ccache |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
# This file is sourced by other scripts and details the versions we build | ||
|
||
FIREHOL_VERSION=3.1.6 | ||
FIREHOL_VERSION=3.1.7 | ||
RPM_FIREHOL_RELEASE="1" | ||
FIREHOL_URL=https://github.com/firehol/firehol/releases/download/v$FIREHOL_VERSION | ||
|
||
IPRANGE_VERSION=1.0.4 | ||
IPRANGE_URL=https://github.com/firehol/iprange/releases/download/v$IPRANGE_VERSION | ||
|
||
NETDATA_VERSION=1.10.0 | ||
NETDATA_URL=https://github.com/firehol/netdata/releases/download/v$NETDATA_VERSION | ||
|
||
RPM_IPRANGE_RELEASE="2" | ||
RPM_FIREHOL_RELEASE="2" | ||
IPRANGE_URL=https://github.com/firehol/iprange/releases/download/v$IPRANGE_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters