mirror of
https://github.com/Icinga/docker-icinga2.git
synced 2026-04-03 19:31:03 +02:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
# Icinga 2 Docker image | (c) 2020 Icinga GmbH | GPLv2+
|
|
|
|
name: Icinga 2 Docker image
|
|
inputs:
|
|
dockerhub-token:
|
|
default: ''
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- shell: bash
|
|
run: sudo apt-get install -y qemu-user-static binfmt-support
|
|
|
|
- shell: bash
|
|
run: docker buildx create --use
|
|
|
|
- if: inputs.dockerhub-token != ''
|
|
env:
|
|
PW: ${{ inputs.dockerhub-token }}
|
|
shell: bash
|
|
run: |
|
|
docker login -u icingaadmin --password-stdin <<<"$PW"
|
|
|
|
- if: github.event_name == 'release'
|
|
shell: bash
|
|
run: |
|
|
'${{ github.action_path }}/build.bash' . push "$(tr -d v <<<'${{ github.ref_name }}')"
|
|
'${{ github.action_path }}/mktags.bash' '${{ github.ref_name }}'
|
|
|
|
- if: github.event_name == 'push'
|
|
shell: bash
|
|
run: |
|
|
'${{ github.action_path }}/build.bash' . push '${{ github.ref_name }}'
|
|
|
|
- if: github.event_name != 'release' && github.event_name != 'push'
|
|
shell: bash
|
|
run: |
|
|
'${{ github.action_path }}/build.bash' . all
|