File tree Expand file tree Collapse file tree 4 files changed +60
-0
lines changed
Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ concurrency:
2020
2121permissions :
2222 contents : read
23+ pull-requests : ' write'
2324
2425env :
2526 IMAGE_NAME : config-server
4748
4849 - name : Push image
4950 run : docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
51+
52+ - uses : actions/github-script@v7
53+ if : ${{ github.event_name == 'pull_request' }}
54+ with :
55+ script : |
56+ github.rest.issues.createComment({
57+ issue_number: context.issue.number,
58+ owner: context.repo.owner,
59+ repo: context.repo.repo,
60+ body: `To run the Spring Cloud Config Server image built for this pull request:
61+ \`\`\`bash
62+ docker run --rm -d --pull=always -p 8888:8888 --name config-pr steeltoe.azurecr.io/config-server:pr-${{ github.event.number }}
63+ \`\`\``
64+ })
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ concurrency:
2020
2121permissions :
2222 contents : read
23+ pull-requests : ' write'
2324
2425env :
2526 IMAGE_NAME : eureka-server
4748
4849 - name : Push image
4950 run : docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
51+
52+ - uses : actions/github-script@v7
53+ if : ${{ github.event_name == 'pull_request' }}
54+ with :
55+ script : |
56+ github.rest.issues.createComment({
57+ issue_number: context.issue.number,
58+ owner: context.repo.owner,
59+ repo: context.repo.repo,
60+ body: `To run the Eureka server image built for this pull request:
61+ \`\`\`bash
62+ docker run --rm -d --pull=always -p 8761:8761 --name eureka-pr steeltoe.azurecr.io/eureka-server:pr-${{ github.event.number }}
63+ \`\`\``
64+ })
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ concurrency:
2020
2121permissions :
2222 contents : read
23+ pull-requests : ' write'
2324
2425env :
2526 IMAGE_NAME : spring-boot-admin
4748
4849 - name : Push image
4950 run : docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
51+
52+ - uses : actions/github-script@v7
53+ if : ${{ github.event_name == 'pull_request' }}
54+ with :
55+ script : |
56+ github.rest.issues.createComment({
57+ issue_number: context.issue.number,
58+ owner: context.repo.owner,
59+ repo: context.repo.repo,
60+ body: `To run the Spring Boot Admin server image built for this pull request:
61+ \`\`\`bash
62+ docker run --rm -d --pull=always -p 9099:9099 --name sba-pr steeltoe.azurecr.io/spring-boot-admin:pr-${{ github.event.number }}
63+ \`\`\``
64+ })
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ concurrency:
2020
2121permissions :
2222 contents : read
23+ pull-requests : ' write'
2324
2425env :
2526 IMAGE_NAME : uaa-server
4748
4849 - name : Push image
4950 run : docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
51+
52+ - uses : actions/github-script@v7
53+ if : ${{ github.event_name == 'pull_request' }}
54+ with :
55+ script : |
56+ github.rest.issues.createComment({
57+ issue_number: context.issue.number,
58+ owner: context.repo.owner,
59+ repo: context.repo.repo,
60+ body: `To run the UAA server image built for this pull request:
61+ \`\`\`bash
62+ docker run --rm -d --pull=always -p 8080:8080 --name uaa-pr steeltoe.azurecr.io/uaa-server:pr-${{ github.event.number }}
63+ \`\`\``
64+ })
You can’t perform that action at this time.
0 commit comments