-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (41 loc) · 1.27 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Docker
on:
pull_request:
push:
branches: ['main']
tags: ['v*']
concurrency:
group: '${{ github.workflow }} @ ${{ github.ref }}'
cancel-in-progress: true
env:
# renovate: datasource=docker depName=ghcr.io/usa-reddragon/trunk-recorder-prometheus
PROMETHEUS_BASE_IMAGE_TAG: main@sha256:afe700092fe5f916d186ffec9b6c523ff15e1a941344989a5bd7150ae79b68b7
jobs:
base:
permissions:
contents: read
packages: write
security-events: write
uses: USA-RedDragon/reusable-actions/.github/workflows/[email protected]
with:
push: ${{ github.event_name != 'pull_request' }}
security-category: base
vars:
runs-on: ubuntu-22.04
outputs:
base_image_tag: ${{ env.PROMETHEUS_BASE_IMAGE_TAG }}
steps:
- run: echo "Exposing env vars"
prometheus:
needs: [vars]
permissions:
contents: read
packages: write
security-events: write
uses: USA-RedDragon/reusable-actions/.github/workflows/[email protected]
with:
push: ${{ github.event_name != 'pull_request' }}
image-name: ${{ github.repository }}-prometheus
build-args: |
BASE_IMAGE=ghcr.io/usa-reddragon/trunk-recorder-prometheus:${{ needs.vars.outputs.base_image_tag }}
security-category: prometheus