Skip to content

Commit ecc7e8c

Browse files
committed
put comment on single line, change outer quote type and temporarily disable steps that do real work
1 parent 270ac15 commit ecc7e8c

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

.github/workflows/build_config_server.yaml

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,25 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v4
3535

36-
- name: Build Image
37-
run: ./build.ps1 -Name '${{ env.IMAGE_NAME }}' -Registry '${{ env.REGISTRY }}' -Tag '${{ env.TAG }}'
38-
shell: pwsh
39-
env:
40-
TAG: ${{ github.event_name == 'pull_request' && format('-t {0}/{1}:pr-{2}', env.REGISTRY, env.IMAGE_NAME, github.event.number) || '' }}
41-
42-
- name: Login to container registry
43-
uses: docker/login-action@v3
44-
with:
45-
registry: ${{ vars.DOCKER_REGISTRY }}
46-
username: ${{ secrets.DOCKER_USERNAME }}
47-
password: ${{ secrets.DOCKER_PASSWORD }}
48-
49-
- name: Push image
50-
run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
36+
# - name: Build Image
37+
# run: ./build.ps1 -Name '${{ env.IMAGE_NAME }}' -Registry '${{ env.REGISTRY }}' -Tag '${{ env.TAG }}'
38+
# shell: pwsh
39+
# env:
40+
# TAG: ${{ github.event_name == 'pull_request' && format('-t {0}/{1}:pr-{2}', env.REGISTRY, env.IMAGE_NAME, github.event.number) || '' }}
41+
42+
# - name: Login to container registry
43+
# uses: docker/login-action@v3
44+
# with:
45+
# registry: ${{ vars.DOCKER_REGISTRY }}
46+
# username: ${{ secrets.DOCKER_USERNAME }}
47+
# password: ${{ secrets.DOCKER_PASSWORD }}
48+
49+
# - name: Push image
50+
# run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5151

5252
- name: Post PR comment with image info
5353
if: ${{ github.event_name == 'pull_request' }}
54-
run: |
55-
gh pr comment $PR_NUMBER --edit-last --create-if-none `
56-
--body `To run the Spring Cloud Config Server image built for this pull request:
57-
\`\`\`bash
58-
docker run --rm -d --pull=always -p 8888:8888 --name config-pr $REGISTRY/$IMAGE_NAME:pr-$PR_NUMBER
59-
\`\`\``
54+
run: gh pr comment $PR_NUMBER --edit-last --create-if-none --body "To run the Spring Cloud Config Server image built for this pull request:\n\`\`\`bash\ndocker run --rm -d --pull=always -p 8888:8888 --name config-pr $REGISTRY/$IMAGE_NAME:pr-$PR_NUMBER\n\`\`\`"
6055
shell: bash
6156
env:
6257
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)