Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
asimpson committed Feb 29, 2024
1 parent f24d282 commit 06a6184
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/pull-request-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:

- name: Build Docker image
uses: docker/build-push-action@v5
if: ${{github.event.pull_request.head.repo.full_name != github.repository}}
# if: ${{github.event.pull_request.head.repo.full_name != github.repository}}
with:
context: .
file: ./Dockerfile
Expand All @@ -110,11 +110,11 @@ jobs:

- name: Save Docker image
shell: bash
if: ${{github.event.pull_request.head.repo.full_name != github.repository}}
# if: ${{github.event.pull_request.head.repo.full_name != github.repository}}
run: docker save -o ${{ github.event.pull_request.head.sha }}pre.tar grafana/plugin-builds:${{ github.event.pull_request.head.sha }}pre

- name: Archive Docker image
if: ${{github.event.pull_request.head.repo.full_name != github.repository}}
# if: ${{github.event.pull_request.head.repo.full_name != github.repository}}
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.pull_request.head.sha }}pre
Expand All @@ -123,19 +123,11 @@ jobs:
- name: Create PR comment
id: prComment
run: |
if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then
message="Use the following steps to run this PR with Docker at http://localhost:3000:
message="Use the following steps to run this PR with Docker at http://localhost:3000:
1. Download the [tar artifact](https://github.com/clickhouse-datasource/actions/runs/${process.env.GITHUB_RUN_ID}) from this run.
2. Load the image: \`docker load < ${{ github.event.pull_request.head.sha }}pre.tar\`
3. Run the image: \`docker run --rm -p 3000:3000 ${{ github.event.pull_request.head.sha }}pre\`"
else
message="Use the following command to run this PR with Docker at http://localhost:3000:
\`\`\`
docker run --rm -p 3000:3000 grafana/plugin-builds:${{ github.event.pull_request.head.sha }}pre
\`\`\`"
fi
# Set the output
echo "::set-output name=message::$message"
Expand Down

0 comments on commit 06a6184

Please sign in to comment.