Skip to content

Commit

Permalink
Updating workflow automation
Browse files Browse the repository at this point in the history
  • Loading branch information
netboot-ci committed Jul 24, 2021
1 parent e40583a commit 5341ea9
Show file tree
Hide file tree
Showing 7 changed files with 406 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/alpinelinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: alpinelinux

on:
push:
branches:
- alpinelinux
schedule:
- cron: '0 0 * * *'

env:
BRANCH: alpinelinux
GITHUB_ENDPOINT: netbootxyz/external-versions
DISCORD_HOOK_URL: ${{ secrets.DISCORD_HOOK_URL }}
BUILD_TYPE: versioning
DEBIAN_FRONTEND: noninteractive
CI_TOKEN: ${{ secrets.CI_TOKEN }}

jobs:
version-checker:
name: Version Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: alpinelinux

- name: Get SHA of actual branch instead of master
run: |
export GITHUB_SHA=$(git rev-parse HEAD)
echo "GITHUB_SHA=$GITHUB_SHA" >> $GITHUB_ENV
- name: Retrieve latest version from upstream and set vars
run: |
export EXTERNAL_VERSION=$(sudo bash version.sh)
echo "EXTERNAL_VERSION=$EXTERNAL_VERSION" >> $GITHUB_ENV
wget https://raw.githubusercontent.com/netbootxyz/build-pipelines/master/build.sh && chmod +x build.sh
git config --global user.name netboot-ci
git config --global user.email netboot-ci@netboot.xyz
- name: Check version
id: compare
run: ./build.sh ${{ env.BUILD_TYPE }} ${{ env.EXTERNAL_VERSION }}
continue-on-error: true

- name: Build release
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success'
run: |
./build.sh releases ${{ env.EXTERNAL_VERSION }}
- name: Notify Discord on failure
if: failure()
run: |
./build.sh discord versionbad
- name: Notify Discord on completion
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success' && success()
run: |
./build.sh discord versiongood
58 changes: 58 additions & 0 deletions .github/workflows/archlinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: archlinux

on:
push:
branches:
- archlinux
schedule:
- cron: '0 0 * * *'

env:
BRANCH: archlinux
GITHUB_ENDPOINT: netbootxyz/external-versions
DISCORD_HOOK_URL: ${{ secrets.DISCORD_HOOK_URL }}
BUILD_TYPE: versioning
DEBIAN_FRONTEND: noninteractive
CI_TOKEN: ${{ secrets.CI_TOKEN }}

jobs:
version-checker:
name: Version Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: archlinux

- name: Get SHA of actual branch instead of master
run: |
export GITHUB_SHA=$(git rev-parse HEAD)
echo "GITHUB_SHA=$GITHUB_SHA" >> $GITHUB_ENV
- name: Retrieve latest version from upstream and set vars
run: |
export EXTERNAL_VERSION=$(sudo bash version.sh)
echo "EXTERNAL_VERSION=$EXTERNAL_VERSION" >> $GITHUB_ENV
wget https://raw.githubusercontent.com/netbootxyz/build-pipelines/master/build.sh && chmod +x build.sh
git config --global user.name netboot-ci
git config --global user.email netboot-ci@netboot.xyz
- name: Check version
id: compare
run: ./build.sh ${{ env.BUILD_TYPE }} ${{ env.EXTERNAL_VERSION }}
continue-on-error: true

- name: Build release
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success'
run: |
./build.sh releases ${{ env.EXTERNAL_VERSION }}
- name: Notify Discord on failure
if: failure()
run: |
./build.sh discord versionbad
- name: Notify Discord on completion
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success' && success()
run: |
./build.sh discord versiongood
58 changes: 58 additions & 0 deletions .github/workflows/coreos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: coreos

on:
push:
branches:
- coreos
schedule:
- cron: '0 0 * * *'

env:
BRANCH: coreos
GITHUB_ENDPOINT: netbootxyz/external-versions
DISCORD_HOOK_URL: ${{ secrets.DISCORD_HOOK_URL }}
BUILD_TYPE: versioning
DEBIAN_FRONTEND: noninteractive
CI_TOKEN: ${{ secrets.CI_TOKEN }}

jobs:
version-checker:
name: Version Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: coreos

- name: Get SHA of actual branch instead of master
run: |
export GITHUB_SHA=$(git rev-parse HEAD)
echo "GITHUB_SHA=$GITHUB_SHA" >> $GITHUB_ENV
- name: Retrieve latest version from upstream and set vars
run: |
export EXTERNAL_VERSION=$(sudo bash version.sh)
echo "EXTERNAL_VERSION=$EXTERNAL_VERSION" >> $GITHUB_ENV
wget https://raw.githubusercontent.com/netbootxyz/build-pipelines/master/build.sh && chmod +x build.sh
git config --global user.name netboot-ci
git config --global user.email netboot-ci@netboot.xyz
- name: Check version
id: compare
run: ./build.sh ${{ env.BUILD_TYPE }} ${{ env.EXTERNAL_VERSION }}
continue-on-error: true

- name: Build release
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success'
run: |
./build.sh releases ${{ env.EXTERNAL_VERSION }}
- name: Notify Discord on failure
if: failure()
run: |
./build.sh discord versionbad
- name: Notify Discord on completion
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success' && success()
run: |
./build.sh discord versiongood
58 changes: 58 additions & 0 deletions .github/workflows/ipfire.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: ipfire

on:
push:
branches:
- ipfire
schedule:
- cron: '0 0 * * *'

env:
BRANCH: ipfire
GITHUB_ENDPOINT: netbootxyz/external-versions
DISCORD_HOOK_URL: ${{ secrets.DISCORD_HOOK_URL }}
BUILD_TYPE: versioning
DEBIAN_FRONTEND: noninteractive
CI_TOKEN: ${{ secrets.CI_TOKEN }}

jobs:
version-checker:
name: Version Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ipfire

- name: Get SHA of actual branch instead of master
run: |
export GITHUB_SHA=$(git rev-parse HEAD)
echo "GITHUB_SHA=$GITHUB_SHA" >> $GITHUB_ENV
- name: Retrieve latest version from upstream and set vars
run: |
export EXTERNAL_VERSION=$(sudo bash version.sh)
echo "EXTERNAL_VERSION=$EXTERNAL_VERSION" >> $GITHUB_ENV
wget https://raw.githubusercontent.com/netbootxyz/build-pipelines/master/build.sh && chmod +x build.sh
git config --global user.name netboot-ci
git config --global user.email netboot-ci@netboot.xyz
- name: Check version
id: compare
run: ./build.sh ${{ env.BUILD_TYPE }} ${{ env.EXTERNAL_VERSION }}
continue-on-error: true

- name: Build release
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success'
run: |
./build.sh releases ${{ env.EXTERNAL_VERSION }}
- name: Notify Discord on failure
if: failure()
run: |
./build.sh discord versionbad
- name: Notify Discord on completion
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success' && success()
run: |
./build.sh discord versiongood
58 changes: 58 additions & 0 deletions .github/workflows/nixos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: nixos

on:
push:
branches:
- nixos
schedule:
- cron: '0 0 * * *'

env:
BRANCH: nixos
GITHUB_ENDPOINT: netbootxyz/external-versions
DISCORD_HOOK_URL: ${{ secrets.DISCORD_HOOK_URL }}
BUILD_TYPE: versioning
DEBIAN_FRONTEND: noninteractive
CI_TOKEN: ${{ secrets.CI_TOKEN }}

jobs:
version-checker:
name: Version Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: nixos

- name: Get SHA of actual branch instead of master
run: |
export GITHUB_SHA=$(git rev-parse HEAD)
echo "GITHUB_SHA=$GITHUB_SHA" >> $GITHUB_ENV
- name: Retrieve latest version from upstream and set vars
run: |
export EXTERNAL_VERSION=$(sudo bash version.sh)
echo "EXTERNAL_VERSION=$EXTERNAL_VERSION" >> $GITHUB_ENV
wget https://raw.githubusercontent.com/netbootxyz/build-pipelines/master/build.sh && chmod +x build.sh
git config --global user.name netboot-ci
git config --global user.email netboot-ci@netboot.xyz
- name: Check version
id: compare
run: ./build.sh ${{ env.BUILD_TYPE }} ${{ env.EXTERNAL_VERSION }}
continue-on-error: true

- name: Build release
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success'
run: |
./build.sh releases ${{ env.EXTERNAL_VERSION }}
- name: Notify Discord on failure
if: failure()
run: |
./build.sh discord versionbad
- name: Notify Discord on completion
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success' && success()
run: |
./build.sh discord versiongood
58 changes: 58 additions & 0 deletions .github/workflows/smartos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: smartos

on:
push:
branches:
- smartos
schedule:
- cron: '0 0 * * *'

env:
BRANCH: smartos
GITHUB_ENDPOINT: netbootxyz/external-versions
DISCORD_HOOK_URL: ${{ secrets.DISCORD_HOOK_URL }}
BUILD_TYPE: versioning
DEBIAN_FRONTEND: noninteractive
CI_TOKEN: ${{ secrets.CI_TOKEN }}

jobs:
version-checker:
name: Version Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: smartos

- name: Get SHA of actual branch instead of master
run: |
export GITHUB_SHA=$(git rev-parse HEAD)
echo "GITHUB_SHA=$GITHUB_SHA" >> $GITHUB_ENV
- name: Retrieve latest version from upstream and set vars
run: |
export EXTERNAL_VERSION=$(sudo bash version.sh)
echo "EXTERNAL_VERSION=$EXTERNAL_VERSION" >> $GITHUB_ENV
wget https://raw.githubusercontent.com/netbootxyz/build-pipelines/master/build.sh && chmod +x build.sh
git config --global user.name netboot-ci
git config --global user.email netboot-ci@netboot.xyz
- name: Check version
id: compare
run: ./build.sh ${{ env.BUILD_TYPE }} ${{ env.EXTERNAL_VERSION }}
continue-on-error: true

- name: Build release
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success'
run: |
./build.sh releases ${{ env.EXTERNAL_VERSION }}
- name: Notify Discord on failure
if: failure()
run: |
./build.sh discord versionbad
- name: Notify Discord on completion
if: steps.compare.outcome == 'success' && steps.compare.conclusion == 'success' && success()
run: |
./build.sh discord versiongood
Loading

0 comments on commit 5341ea9

Please sign in to comment.