Skip to content

Commit 97f5b12

Browse files
authored
Merge pull request #3 from FlipNoteTeam/chore/cd
Chore: CD 도커 이미지 레지스트리 수정
2 parents 3a04b69 + 7b8267d commit 97f5b12

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/cd.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: CD
2+
run-name: ${{ github.event.workflow_run.head_commit.message }}
23

34
on:
45
workflow_run:
@@ -17,18 +18,23 @@ jobs:
1718
- name: Checkout code
1819
uses: actions/checkout@v4
1920

20-
- name: Login to DockerHub
21-
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
21+
- name: Login to GitHub Container Registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.ORG_PAT }}
2227

2328
- name: Extract Docker image metadata
2429
id: meta
2530
uses: docker/metadata-action@v5
2631
with:
27-
images: dungbik/flipnote-reaction
32+
images: ghcr.io/dungbik/flipnote-reaction
33+
2834
- name: Build and push Docker image
2935
uses: docker/build-push-action@v6
3036
with:
3137
context: .
3238
push: true
3339
tags: ${{ steps.meta.outputs.tags }}
34-
labels: ${{ steps.meta.outputs.labels }}
40+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)