2021-02-15 16:18:59 +01:00
|
|
|
name: DockerHub Description
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-02-15 16:20:31 +01:00
|
|
|
- 'trunk'
|
2021-02-15 16:18:59 +01:00
|
|
|
paths:
|
2023-03-07 09:31:49 +01:00
|
|
|
- 'Dockerfiles/*/README.md'
|
2021-10-16 00:11:57 +02:00
|
|
|
- '.github/workflows/dockerhub_description.yml'
|
2021-02-15 16:18:59 +01:00
|
|
|
workflow_dispatch:
|
|
|
|
|
2024-02-09 08:09:26 +01:00
|
|
|
env:
|
|
|
|
DOCKER_REPOSITORY: "zabbix"
|
2024-02-10 11:38:27 +01:00
|
|
|
IMAGES_PREFIX: "zabbix-"
|
2024-02-09 08:13:10 +01:00
|
|
|
DOCKERFILES_DIRECTORY: "./Dockerfiles"
|
2024-02-09 08:09:26 +01:00
|
|
|
|
2021-02-15 16:18:59 +01:00
|
|
|
jobs:
|
|
|
|
main:
|
2024-02-09 08:13:10 +01:00
|
|
|
name: Update description
|
2021-02-15 16:18:59 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
DOCKER_REPOSITORY: "zabbix"
|
2024-02-09 08:09:26 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2021-02-15 16:18:59 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-02-09 08:09:26 +01:00
|
|
|
component:
|
2021-10-16 00:11:57 +02:00
|
|
|
- build-base
|
2021-10-16 00:13:09 +02:00
|
|
|
- build-mysql
|
|
|
|
- build-pgsql
|
|
|
|
- build-sqlite3
|
2021-02-15 16:18:59 +01:00
|
|
|
- agent
|
|
|
|
- agent2
|
2021-04-27 16:24:18 +02:00
|
|
|
- java-gateway
|
|
|
|
- proxy-mysql
|
|
|
|
- proxy-sqlite3
|
|
|
|
- server-mysql
|
|
|
|
- server-pgsql
|
|
|
|
- snmptraps
|
|
|
|
- web-apache-mysql
|
|
|
|
- web-apache-pgsql
|
2021-02-15 16:18:59 +01:00
|
|
|
- web-nginx-mysql
|
|
|
|
- web-nginx-pgsql
|
2021-04-27 16:24:18 +02:00
|
|
|
- web-service
|
2021-02-15 16:18:59 +01:00
|
|
|
steps:
|
2024-02-09 08:09:26 +01:00
|
|
|
- name: Block egress traffic
|
|
|
|
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
|
|
|
|
with:
|
2024-02-09 08:14:59 +01:00
|
|
|
disable-sudo: true
|
|
|
|
egress-policy: block
|
|
|
|
allowed-endpoints: >
|
|
|
|
github.com:443
|
|
|
|
hub.docker.com:443
|
2024-02-09 08:09:26 +01:00
|
|
|
|
|
|
|
- name: Checkout repository
|
2024-02-05 05:16:42 +01:00
|
|
|
uses: actions/checkout@v4
|
2024-02-09 08:09:26 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
|
|
|
|
- name: Update DockerHub repo description (zabbix-${{ matrix.component }})
|
2024-02-05 05:16:42 +01:00
|
|
|
uses: peter-evans/dockerhub-description@v4
|
2021-02-15 16:18:59 +01:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2024-02-10 11:38:27 +01:00
|
|
|
repository: ${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGES_PREFIX }}${{ matrix.component }}
|
2024-02-09 08:13:10 +01:00
|
|
|
readme-filepath: ${{ env.DOCKERFILES_DIRECTORY }}/${{ matrix.component }}/README.md
|