Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Schöchlin <[email protected]>
  • Loading branch information
scoopex committed Dec 23, 2024
1 parent 0c72b56 commit 2e598fc
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 36 deletions.
39 changes: 3 additions & 36 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,6 @@ on:
branches:
- '*'
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
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
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
run: |
./create_docker build
# - name: Build
# run: |
# ./create_docker build
uses: ./.github/workflows/shared.yml
with:
publish_steps: false
53 changes: 53 additions & 0 deletions .github/workflows/shared.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Shared Build Workflow

on:
workflow_call:
inputs:
publish_steps:
description: "Publish artefacts"
required: false
default: "false"

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 == 'true' }}
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 == 'true' }}
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
run: |
./create_docker build
- name: Build
if: ${{ inputs.publish_steps == 'true' }}
run: |
./create_docker publish

0 comments on commit 2e598fc

Please sign in to comment.