-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathpublish-profiling-petclinic-base.yml
More file actions
56 lines (56 loc) · 2.13 KB
/
publish-profiling-petclinic-base.yml
File metadata and controls
56 lines (56 loc) · 2.13 KB
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
48
49
50
51
52
53
54
55
56
name: publish-profiling-petclinic-base-image
on: workflow_dispatch
jobs:
push_to_registry_linux:
name: publish custom linux spring-petclinic base image for profiling
runs-on: ubuntu-24.04
strategy:
matrix:
jdk_version: [8, 11, 17, 21, 25]
permissions:
packages: write
contents: read
steps:
- name: check out the repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
- name: Login to GitHub Container Registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: push to gh packages
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
with:
push: true
file: smoke-tests/profiling-base-petclinic/linux/Dockerfile
build-args: |
jdkVersion=${{ matrix.jdk_version }}
tags: ghcr.io/signalfx/splunk-otel-java/profiling-petclinic-base-linux-jdk${{ matrix.jdk_version }}:latest
push_to_registry_windows:
name: publish custom windows spring-petclinic base image for profiling
runs-on: windows-2025
strategy:
matrix:
jdk_version: [8, 11, 17, 21, 25]
defaults:
run:
shell: bash
permissions:
packages: write
contents: read
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- name: check out the repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Login to GitHub Container Registry
uses: azure/docker-login@15c4aadf093404726ab2ff205b2cdd33fa6d054c # v2
with:
login-server: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & push docker image
run: ./build.sh ${{ matrix.jdk_version }}
working-directory: smoke-tests/profiling-base-petclinic/windows