mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-14 20:04:50 +01:00
Updated Go lang to 1.17.1 version
This commit is contained in:
parent
244158f375
commit
1d74db337f
39
.github/workflows/build_images.yml
vendored
39
.github/workflows/build_images.yml
vendored
@ -18,6 +18,10 @@ defaults:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
env:
|
||||||
|
DOCKER_REPOSITORY: "zabbix"
|
||||||
|
LATEST_BRANCH: ${{ github.event.repository.default_branch }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
init_build:
|
init_build:
|
||||||
name: Initialize build
|
name: Initialize build
|
||||||
@ -26,32 +30,38 @@ jobs:
|
|||||||
os: ${{ steps.os.outputs.list }}
|
os: ${{ steps.os.outputs.list }}
|
||||||
database: ${{ steps.database.outputs.list }}
|
database: ${{ steps.database.outputs.list }}
|
||||||
components: ${{ steps.components.outputs.list }}
|
components: ${{ steps.components.outputs.list }}
|
||||||
latest_branch: ${{ github.event.repository.default_branch }}
|
|
||||||
docker_repository: "zabbix"
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
- shell: bash
|
- shell: bash
|
||||||
id: os
|
id: os
|
||||||
run: |
|
run: |
|
||||||
jq
|
if [[ -f "./build.xml" ]]; then
|
||||||
echo "::set-output name=list::[\"alpine\", \"ol\", \"ubuntu\"]"
|
os=$(jq -r '.os | keys | [ .[] | tostring ] | @json' "./build.xml")
|
||||||
|
else
|
||||||
|
os=[]
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "::set-output name=list::$os"
|
||||||
|
|
||||||
- shell: bash
|
- shell: bash
|
||||||
id: database
|
id: database
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=list::[\"build-mysql\", \"build-pgsql\", \"build-sqlite3\"]"
|
database=$(jq -r '[.components | values[] ] | sort | unique | del(.. | select ( . == "" ) ) | [ .[] | tostring ] | @json' "./build.xml")
|
||||||
|
echo "::set-output name=list::$database"
|
||||||
|
|
||||||
- shell: bash
|
- shell: bash
|
||||||
id: components
|
id: components
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=list::[\"agent\", \"agent2\", \"java-gateway\", \"proxy-mysql\", \"proxy-sqlite3\", \"server-mysql\", \"server-pgsql\", \"snmptraps\", \"web-apache-mysql\", \"web-apache-pgsql\", \"web-nginx-mysql\", \"web-nginx-pgsql\", \"web-service\"]"
|
components=$(jq -r '.components | keys | [ .[] | tostring ] | @json' "./build.xml")
|
||||||
|
echo "::set-output name=list::$components"
|
||||||
|
|
||||||
build_base:
|
build_base:
|
||||||
timeout-minutes: 70
|
timeout-minutes: 70
|
||||||
name: Build ${{ matrix.build }} base on ${{ matrix.os }}
|
name: Build ${{ matrix.build }} base on ${{ matrix.os }}
|
||||||
needs: init_build
|
needs: init_build
|
||||||
env:
|
|
||||||
LATEST_BRANCH: "${{ needs.init_build.outputs.latest_branch }}"
|
|
||||||
DOCKER_REPOSITORY: "${{ needs.init_build.outputs.docker_repository }}"
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -195,9 +205,6 @@ jobs:
|
|||||||
timeout-minutes: 70
|
timeout-minutes: 70
|
||||||
needs: [ "build_base", "init_build"]
|
needs: [ "build_base", "init_build"]
|
||||||
name: Build ${{ matrix.build }} base on ${{ matrix.os }}
|
name: Build ${{ matrix.build }} base on ${{ matrix.os }}
|
||||||
env:
|
|
||||||
LATEST_BRANCH: "${{ needs.init_build.outputs.latest_branch }}"
|
|
||||||
DOCKER_REPOSITORY: "${{ needs.init_build.outputs.docker_repository }}"
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -351,9 +358,6 @@ jobs:
|
|||||||
timeout-minutes: 70
|
timeout-minutes: 70
|
||||||
needs: [ "build_base_database", "init_build"]
|
needs: [ "build_base_database", "init_build"]
|
||||||
name: Build ${{ matrix.build }} base on ${{ matrix.os }}
|
name: Build ${{ matrix.build }} base on ${{ matrix.os }}
|
||||||
env:
|
|
||||||
LATEST_BRANCH: "${{ needs.init_build.outputs.latest_branch }}"
|
|
||||||
DOCKER_REPOSITORY: "${{ needs.init_build.outputs.docker_repository }}"
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -387,6 +391,11 @@ jobs:
|
|||||||
#,linux/ppc64le"
|
#,linux/ppc64le"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Chromium package does not have additional architectures support
|
||||||
|
if [ "${{ matrix.build }}" == "web-service" ]; then
|
||||||
|
DOCKER_PLATFORM="linux/amd64,linux/arm64"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${{ matrix.os }}" == "ol" ]; then
|
if [ "${{ matrix.os }}" == "ol" ]; then
|
||||||
DOCKER_PLATFORM="linux/amd64,linux/arm64"
|
DOCKER_PLATFORM="linux/amd64,linux/arm64"
|
||||||
fi
|
fi
|
||||||
|
35
build.xml
Normal file
35
build.xml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"os": {
|
||||||
|
"alpine": [
|
||||||
|
"linux/amd64",
|
||||||
|
"linux/arm/v6",
|
||||||
|
"linux/arm/v7",
|
||||||
|
"linux/arm64",
|
||||||
|
"linux/s390x"
|
||||||
|
],
|
||||||
|
"ol": [
|
||||||
|
"linux/amd64",
|
||||||
|
"linux/arm64"
|
||||||
|
],
|
||||||
|
"ubuntu": [
|
||||||
|
"linux/amd64",
|
||||||
|
"linux/arm/v7",
|
||||||
|
"linux/arm64"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"agent": "build-mysql",
|
||||||
|
"agent2": "build-mysql",
|
||||||
|
"java-gateway": "build-mysql",
|
||||||
|
"proxy-mysql": "build-mysql",
|
||||||
|
"proxy-sqlite3": "build-sqlite3",
|
||||||
|
"server-mysql": "build-mysql",
|
||||||
|
"server-pgsql": "build-pgsql",
|
||||||
|
"snmptraps": "",
|
||||||
|
"web-apache-mysql": "build-mysql",
|
||||||
|
"web-apache-pgsql": "build-pgsql",
|
||||||
|
"web-nginx-mysql": "build-mysql",
|
||||||
|
"web-nginx-pgsql": "build-mysql",
|
||||||
|
"web-service": "build-mysql"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user