-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.1 KB
/
build-renovate-pr.yml
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
name: "Renovate: Build Container Image / Pull Request"
on:
pull_request:
branches:
- main
paths:
- 'renovate/Dockerfile'
- 'renovate/root/**'
- '.github/workflows/build-container.yml'
- '.github/workflows/build-renovate-pr.yml'
permissions:
contents: read
packages: write
jobs:
get-version:
runs-on: ubuntu-24.04
outputs:
renovate: ${{ steps.renovate_version.outputs.RENOVATE_VERSION }}
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Get renovate version
id: renovate_version
run: |
echo "RENOVATE_VERSION=$(grep -E '^FROM docker.io/renovate/renovate:[0-9]+\.[0-9]+\.[0-9]+' renovate/Dockerfile | cut -d ':' -f 2 | tr -d '@sha256')" >> $GITHUB_OUTPUT
call-build-workflow:
name: Build
needs: get-version
uses: erhardtconsulting/images/.github/workflows/build-container.yml@main
with:
image: "renovate"
dockerfile: "Dockerfile"
tag: ${{ needs.get-version.outputs.renovate }}
push: false
secrets: inherit