File tree Expand file tree Collapse file tree 7 files changed +115
-1
lines changed
Expand file tree Collapse file tree 7 files changed +115
-1
lines changed Original file line number Diff line number Diff line change 1+ # See GitHub's docs for more information on this file:
2+ # https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates
3+ version : 2
4+ updates :
5+ # Maintain dependencies for GitHub Actions
6+ - package-ecosystem : " github-actions"
7+ directory : " /"
8+ schedule :
9+ interval : " monthly"
Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ branches :
6+ - " *"
7+ tags :
8+ - " v*"
9+ pull_request :
10+ branches :
11+ - " main"
12+
13+ env :
14+ REGISTRY : quay.io
15+ IMAGE_NAME : ${{ github.repository }}
16+
17+ jobs :
18+ docker :
19+ runs-on : ubuntu-latest
20+ if : github.actor != 'dependabot[bot]'
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+ - name : Set up QEMU
25+ uses : docker/setup-qemu-action@v3
26+ - name : Set up Docker Buildx
27+ uses : docker/setup-buildx-action@v3
28+ - name : Extract metadata (tags, labels) for Docker
29+ id : meta
30+ uses : docker/metadata-action@v5
31+ with :
32+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
33+ - name : Login to Quay.io Container Registry
34+ uses : docker/login-action@v3
35+ with :
36+ registry : quay.io
37+ username : utilitywarehouse+drone_ci
38+ password : ${{ secrets.SYSTEM_QUAY_TOKEN }}
39+ - name : Build and push Docker image
40+ uses : docker/build-push-action@v6
41+ with :
42+ context : .
43+ push : true
44+ tags : ${{ steps.meta.outputs.tags }}
45+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1+ # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#approve-a-pull-request
2+ name : Dependabot auto-approve
3+ on : pull_request
4+
5+ permissions :
6+ pull-requests : write
7+
8+ jobs :
9+ dependabot :
10+ runs-on : ubuntu-latest
11+ if : ${{ github.actor == 'dependabot[bot]' }}
12+ steps :
13+ - name : Dependabot metadata
14+ id : metadata
15+ uses : dependabot/fetch-metadata@v2.4.0
16+ with :
17+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
18+ - name : Approve a PR
19+ run : gh pr review --approve "$PR_URL"
20+ env :
21+ PR_URL : ${{github.event.pull_request.html_url}}
22+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1+ # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
2+ name : Dependabot auto-merge
3+ on : pull_request
4+
5+ permissions :
6+ pull-requests : write
7+ contents : write
8+
9+ jobs :
10+ dependabot :
11+ runs-on : ubuntu-latest
12+ if : ${{ github.actor == 'dependabot[bot]' }}
13+ steps :
14+ - name : Dependabot metadata
15+ id : metadata
16+ uses : dependabot/fetch-metadata@v2.4.0
17+ with :
18+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
19+ - name : Enable auto-merge for Dependabot PRs
20+ run : gh pr merge --auto --merge "$PR_URL"
21+ env :
22+ PR_URL : ${{github.event.pull_request.html_url}}
23+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1+ * @ utilitywarehouse/system
Original file line number Diff line number Diff line change 1+ FROM alpine:3.22 AS tmp
2+
3+ RUN --mount=type=cache,target=/var/cache/apk \
4+ apk add curl
5+
6+ ENV VERSION=1.0.1
7+ ENV JAR=jmx_prometheus_javaagent-$VERSION.jar
8+
9+ RUN curl -L https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/$VERSION/$JAR -o /lib/$JAR
10+
11+ FROM gcr.io/distroless/static:nonroot
12+ COPY --from=tmp /lib /lib
Original file line number Diff line number Diff line change 11# docker-jmx-prometheus-javaagent-lib
22Docker image that contains the JMX Prometheus javaagent library
33
4- This should be used as an K8s init container for copying the library in other containers
4+ This should be used as a K8s init container for copying the library in other containers
5+
6+ The jar file is available at ` /lib/jmx_prometheus_javaagent-$VERSION.jar. `
You can’t perform that action at this time.
0 commit comments