-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use a shared workflow for the release and development builds - update base docker image to zabbix 7.2 - add docker build and release steps - add reference to dockerhub Signed-off-by: Marc Schöchlin <[email protected]>
- Loading branch information
Showing
5 changed files
with
84 additions
and
39 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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Shared Build Workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
publish_steps: | ||
description: "Publish artefacts" | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
build-pkg: | ||
name: CI-PKGs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup | ||
run: | | ||
sudo apt-get install ruby-dev build-essential debhelper devscripts rpm xalan wget -y | ||
sudo gem install fpm | ||
- name: Build Package | ||
run: ./create_packages | ||
- name: Test Package | ||
run: sudo ./ci_test | ||
- uses: ncipollo/release-action@v1 | ||
if: ${{ inputs.publish_steps }} | ||
with: | ||
artifacts: "zabbix-agent-extensions*.deb,zabbix-agent-extensions-*.rpm" | ||
build-docker: | ||
name: CI-Docker | ||
runs-on: ubuntu-latest | ||
environment: "Docker Upload" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Login to Docker Hub | ||
if: ${{ inputs.publish_steps }} | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ vars.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build | ||
run: | | ||
./create_docker build | ||
- name: Publish docker images | ||
if: ${{ inputs.publish_steps }} | ||
run: | | ||
./create_docker publish |
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,5 +1,4 @@ | ||
FROM zabbix/zabbix-agent:ubuntu-6.4-latest | ||
MAINTAINER [email protected] | ||
FROM zabbix/zabbix-agent:ubuntu-7.2-latest | ||
|
||
USER 0 | ||
ADD /docker-scripts /tmp/setup | ||
|
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