forked from signalfx/splunk-otel-java
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (56 loc) · 1.86 KB
/
publish-profiling-petclinic-base.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
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]
permissions:
packages: write
contents: read
steps:
- name: check out the repo
uses: actions/[email protected]
- uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: push to gh packages
uses: docker/[email protected]
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-2022
strategy:
matrix:
jdk_version: [8, 11, 17]
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/[email protected]
- name: Login to GitHub Container Registry
uses: azure/docker-login@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