Skip to content

Commit

Permalink
Chor(CI/CD): Fix image name
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkornel committed Aug 30, 2024
1 parent ba906e8 commit d68b66a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-image-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
l7mp/stunner:pr-${{ github.event.pull_request.number }}
l7mp/stunnerd:pr-${{ github.event.pull_request.number }}
- name: Comment on PR
if: success() && github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
script: |
const prNumber = context.issue.number;
const comment = `The Docker image for this pull request (#${prNumber}) has been successfully built and pushed to DockerHub as \`docker.io/l7mp/stunner:pr-${prNumber}\`.`;
const comment = `The Docker image for this pull request (#${prNumber}) has been successfully built and pushed to DockerHub as \`docker.io/l7mp/stunnerd:pr-${prNumber}\`.`;
github.rest.issues.createComment({
issue_number: prNumber,
owner: context.repo.owner,
Expand Down Expand Up @@ -71,5 +71,5 @@ jobs:
run: |
PR_NUMBER=${{ github.event.pull_request.number }}
curl -s -H "Authorization: Bearer $TOKEN" \
-X DELETE "https://hub.docker.com/v2/repositories/l7mp/stunner/tags/pr-$PR_NUMBER/" \
-X DELETE "https://hub.docker.com/v2/repositories/l7mp/stunnerd/tags/pr-$PR_NUMBER/" \
-w "HTTP Response Code: %{http_code}\n"

0 comments on commit d68b66a

Please sign in to comment.