Skip to content

Commit

Permalink
Merge pull request #1 from mesosphere/mh/bump-exporter
Browse files Browse the repository at this point in the history
chore: bump to 0.18.0
  • Loading branch information
mhrabovcin authored Sep 12, 2024
2 parents 22564c8 + 4cea234 commit ca966e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
docker:
name: Docker
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -38,17 +40,17 @@ jobs:
TAG_OR_BRANCH: ${{ steps.refortag.outputs.value }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build jmx-exporter
uses: docker/build-push-action@v2
with:
tags: ghcr.io/banzaicloud/jmx-javaagent:${{ steps.imagetag.outputs.value }}
tags: ghcr.io/mesosphere/jmx-javaagent:${{ steps.imagetag.outputs.value }}
file: Dockerfile
platforms: ${{ env.PLATFORMS }}
platforms: linux/amd64,linux/arm64
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM maven:3.8.4-eclipse-temurin-11 as build
ARG VERSION=0.16.1
ARG VERSION=0.18.0
WORKDIR /
USER root
RUN \
Expand All @@ -18,5 +18,6 @@ RUN \
&& mvn clean package

FROM busybox:latest
COPY --from=build /jmx_exporter/jmx_prometheus_javaagent/target/jmx_prometheus_javaagent-*.jar /opt/jmx_exporter/
ARG VERSION=0.18.0
COPY --from=build /jmx_exporter/jmx_prometheus_javaagent/target/jmx_prometheus_javaagent-${VERSION}.jar /opt/jmx_exporter/
RUN ln -s /opt/jmx_exporter/jmx_prometheus_javaagent-*.jar /jmx_prometheus_javaagent.jar

0 comments on commit ca966e7

Please sign in to comment.