2022-11-30 11:20:16 -05:00
|
|
|
name: Build logcollector images
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
2023-08-21 02:01:33 -04:00
|
|
|
- "debugd/filebeat/**"
|
|
|
|
- "debugd/logstash/**"
|
|
|
|
- "hack/logcollector/internal/templates/**"
|
2022-11-30 11:20:16 -05:00
|
|
|
- ".github/workflows/build-logcollector-images.yml"
|
|
|
|
|
|
|
|
jobs:
|
2023-08-21 02:01:33 -04:00
|
|
|
build-logcollector-debugd-images:
|
2022-11-30 11:20:16 -05:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
|
|
|
id: checkout
|
2023-10-11 07:49:50 -04:00
|
|
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
2022-11-30 11:20:16 -05:00
|
|
|
with:
|
2022-12-19 09:21:28 -05:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-11-30 11:20:16 -05:00
|
|
|
|
2023-08-21 02:01:33 -04:00
|
|
|
- name: Build and upload Logstash container image
|
2022-11-30 11:20:16 -05:00
|
|
|
uses: ./.github/actions/build_micro_service
|
|
|
|
with:
|
|
|
|
name: logstash-debugd
|
2023-08-21 02:01:33 -04:00
|
|
|
dockerfile: debugd/logstash/Dockerfile
|
2022-11-30 11:20:16 -05:00
|
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2023-08-21 02:01:33 -04:00
|
|
|
- name: Build and upload Filebeat container image
|
2022-11-30 11:20:16 -05:00
|
|
|
uses: ./.github/actions/build_micro_service
|
|
|
|
with:
|
|
|
|
name: filebeat-debugd
|
2023-08-21 02:01:33 -04:00
|
|
|
dockerfile: debugd/filebeat/Dockerfile
|
2022-11-30 11:20:16 -05:00
|
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
2023-09-27 10:17:31 -04:00
|
|
|
|
|
|
|
- name: Build and upload Metricbeat container image
|
|
|
|
uses: ./.github/actions/build_micro_service
|
|
|
|
with:
|
|
|
|
name: metricbeat-debugd
|
|
|
|
dockerfile: debugd/metricbeat/Dockerfile
|
|
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|