Skip to content

Commit 5fc8268

Browse files
Dathan Vance Pattishallclaude
andcommitted
fix: upgrade GitHub Actions to Node.js 24-compatible versions
actions/checkout v3 → v4 docker/login-action pinned SHA → v3 docker/metadata-action pinned SHA → v5 docker/build-push-action pinned SHA → v6 Also skip the push step on pull_request events (was pushing on PRs). Removes stale env vars username/password that were unused. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 43cfa7c commit 5fc8268

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/dockerpublish.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ on:
1313
# Run tests for any PRs.
1414
pull_request:
1515

16-
env:
17-
REGISTRY: ghcr.io
18-
IMAGE_NAME: ${{ github.repository }}
19-
username: ${{ github.actor }} # This is your GitHub username automatically
20-
password: ${{ secrets.GITHUB_TOKEN }} # No setup required!
21-
2216
permissions:
2317
contents: read
2418
packages: write
@@ -30,29 +24,28 @@ jobs:
3024

3125
steps:
3226
- name: Checkout repository
33-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
3428

3529
- name: Log in to the Container registry
36-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
30+
uses: docker/login-action@v3
3731
with:
3832
registry: ghcr.io
3933
username: ${{ github.actor }}
4034
password: ${{ secrets.GITHUB_TOKEN }}
4135

4236
- name: Extract metadata (tags, labels) for Docker
4337
id: meta
44-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
38+
uses: docker/metadata-action@v5
4539
with:
46-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
40+
images: ghcr.io/${{ github.repository }}
4741
tags: |
4842
type=ref,event=tag
4943
type=sha,prefix=commit-
5044
51-
5245
- name: Build and push Docker image
53-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
46+
uses: docker/build-push-action@v6
5447
with:
5548
context: .
56-
push: true
49+
push: ${{ github.event_name != 'pull_request' }}
5750
tags: ${{ steps.meta.outputs.tags }}
5851
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)