Skip to content

Commit d55b8b2

Browse files
shaxbeeZibi Mandziejewicz
authored andcommitted
chore: add GHCR login
1 parent 8b0ce3b commit d55b8b2

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
push:
55

66
jobs:
7-
buildx:
7+
image-build:
8+
name: Image Build
89
runs-on: ubuntu-latest
910
steps:
1011
- name: Checkout
@@ -15,8 +16,20 @@ jobs:
1516
uses: docker/setup-buildx-action@v3
1617
with:
1718
platforms: linux/amd64,linux/arm64
18-
- name: Run Skaffold pipeline as action
19+
- name: Login to GitHub Container Registry
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Build images
1926
uses: hiberbee/github-action-skaffold@1.19.0
2027
with:
2128
skaffold-version: 2.14.1
22-
command: build
29+
command: build
30+
file-output: build/images.json
31+
- name: Archive image tags
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: images
35+
path: build/images.json

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
build/
22
go.work.sum
33
coverage.xml
4+
build.json
45

56
# editor and IDE paraphernalia
67
.idea/

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ require (
8383
golang.org/x/term v0.29.0 // indirect
8484
golang.org/x/text v0.22.0 // indirect
8585
golang.org/x/time v0.5.0 // indirect
86+
golang.org/x/tools v0.30.0 // indirect
8687
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
8788
google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a // indirect
8889
google.golang.org/genproto/googleapis/rpc v0.0.0-20250218202821-56aae31c358a // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY
253253
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
254254
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
255255
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
256-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=
257-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
256+
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
257+
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=
258258
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
259259
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
260260
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

0 commit comments

Comments
 (0)