Skip to content

Commit 0298950

Browse files
committed
chore: build
1 parent a4b2104 commit 0298950

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
1013
steps:
1114
- uses: actions/checkout@v4
1215

@@ -16,12 +19,13 @@ jobs:
1619

1720
- uses: docker/login-action@v3
1821
with:
19-
username: ${{ secrets.DOCKERHUB_USERNAME }}
20-
password: ${{ secrets.DOCKERHUB_TOKEN }}
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
2125

2226
- uses: docker/build-push-action@v6
2327
with:
2428
context: .
2529
platforms: linux/amd64,linux/arm64
2630
push: true
27-
tags: codepier/node-getting-started:latest
31+
tags: ghcr.io/codepier/node-getting-started:latest

k8s/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ spec:
1515
spec:
1616
containers:
1717
- name: hello-world
18-
image: codepier/node-getting-started:latest
18+
image: ghcr.io/codepier/node-getting-started:latest
1919
ports:
2020
- containerPort: 3000

0 commit comments

Comments
 (0)