We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e73927 + e368f4d commit 853296dCopy full SHA for 853296d
1 file changed
.github/workflows/ci.yml
@@ -1,5 +1,10 @@
1
name: Build
2
3
+permissions:
4
+ contents: read
5
+ id-token: write
6
+ packages: write
7
+
8
on:
9
push:
10
branches:
@@ -114,6 +119,13 @@ jobs:
114
119
env:
115
120
AWS_REGION: us-east-1
116
121
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
117
129
- name: Get tag
118
130
id: get_tag
131
run: echo "::set-output name=tag::${GITHUB_REF##*/}"
@@ -130,3 +142,5 @@ jobs:
142
mackerel/mkr:${{ steps.get_tag.outputs.tag }}
143
public.ecr.aws/mackerel/mkr:latest
132
144
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