Skip to content

Commit f361e0e

Browse files
committed
Add metadata to builds
1 parent 8b3cda0 commit f361e0e

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/publish_image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
BROWSER_TRUST_KEY=${{ secrets.BROWSER_TRUST_KEY }},
4848
BROWSER_AGENT_ID=${{ secrets.BROWSER_AGENT_ID }},
4949
BROWSER_APPLICATION_ID=${{ secrets.BROWSER_APPLICATION_ID }}
50+
NEW_RELIC_METADATA_COMMIT=${{ github.sha }}
51+
NEW_RELIC_METADATA_RELEASE_TAG=${{ github.ref_name }}
5052
5153
- name: Generate artifact attestation
5254
uses: actions/attest-build-provenance@v1

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ COPY --from=build /src/newrelic/ ./newrelic/
4747
COPY --chmod=0755 entrypoint.sh /
4848
COPY --chmod=0755 tester.sh /app
4949

50+
ARG NEW_RELIC_METADATA_COMMIT
51+
ENV NEW_RELIC_METADATA_COMMIT=$NEW_RELIC_METADATA_COMMIT
52+
53+
ARG NEW_RELIC_METADATA_RELEASE_TAG
54+
ENV NEW_RELIC_METADATA_RELEASE_TAG=$NEW_RELIC_METADATA_RELEASE_TAG
55+
5056
ENTRYPOINT ["/entrypoint.sh"]

tester.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ while true; do
2727
sleep 1
2828
curl -s -o /dev/null http://localhost:8081/owners/4
2929
sleep 1
30+
curl -s -o /dev/null http://localhost:8081/owners/1000/pets/10/edit
31+
sleep 1
3032
curl -s -o /dev/null http://localhost:8081/owners/10/pets/10/edit
3133
sleep 1
3234
curl -s -o /dev/null http://localhost:8081/owners?page=0

0 commit comments

Comments
 (0)