Skip to content

Commit 853296d

Browse files
authored
Merge pull request #684 from mackerelio/ghcr
added container registry GHCR
2 parents 6e73927 + e368f4d commit 853296d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Build
22

3+
permissions:
4+
contents: read
5+
id-token: write
6+
packages: write
7+
38
on:
49
push:
510
branches:
@@ -114,6 +119,13 @@ jobs:
114119
env:
115120
AWS_REGION: us-east-1
116121

122+
- name: Login to GHCR
123+
uses: docker/login-action@v3
124+
with:
125+
registry: ghcr.io
126+
username: ${{ github.actor }}
127+
password: ${{ secrets.GITHUB_TOKEN }}
128+
117129
- name: Get tag
118130
id: get_tag
119131
run: echo "::set-output name=tag::${GITHUB_REF##*/}"
@@ -130,3 +142,5 @@ jobs:
130142
mackerel/mkr:${{ steps.get_tag.outputs.tag }}
131143
public.ecr.aws/mackerel/mkr:latest
132144
public.ecr.aws/mackerel/mkr:${{ steps.get_tag.outputs.tag }}
145+
ghcr.io/${{ github.repository_owner }}/mkr:latest
146+
ghcr.io/${{ github.repository_owner }}/mkr:${{ steps.get_tag.outputs.tag }}

0 commit comments

Comments
 (0)