Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Commit ef97d98

Browse files
authored
Merge pull request #412 from zitadel/publish-image
feat: publish standalone docker image
2 parents 88d14be + 2aa578d commit ef97d98

2 files changed

Lines changed: 37 additions & 6 deletions

File tree

.github/workflows/docker.yml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
packages: write
711

812
jobs:
913
build:
@@ -39,7 +43,14 @@ jobs:
3943
with:
4044
driver-opts: 'image=moby/buildkit:v0.11.6'
4145

42-
- name: Login
46+
- name: Login Public
47+
uses: docker/login-action@v3
48+
with:
49+
registry: ghcr.io
50+
username: ${{ github.actor }}
51+
password: ${{ secrets.GITHUB_TOKEN }}
52+
53+
- name: Login Private
4354
uses: docker/login-action@v3
4455
with:
4556
registry: ${{ secrets.DOCKER_REGISTRY }}
@@ -50,9 +61,15 @@ jobs:
5061
id: meta
5162
uses: docker/metadata-action@v5
5263
with:
53-
images: ${{ secrets.DOCKER_IMAGE }}
54-
# generate Docker tags based on the following events/attributes
55-
tags: type=sha
64+
images: |
65+
ghcr.io/zitadel/login
66+
${{ secrets.DOCKER_IMAGE }}
67+
tags: |
68+
type=edge
69+
type=ref,event=branch
70+
type=ref,event=tag
71+
type=ref,event=pr
72+
type=sha
5673
5774
- name: Install dependencies
5875
run: pnpm install
@@ -69,8 +86,22 @@ jobs:
6986
timeout-minutes: 10
7087
with:
7188
context: .
89+
push: true
7290
cache-from: type=gha
7391
cache-to: type=gha,mode=max
7492
tags: ${{ steps.meta.outputs.tags }}
7593
labels: ${{ steps.meta.outputs.labels }}
76-
push: true
94+
95+
- name: Export digest
96+
run: |
97+
mkdir -p /tmp/digests/app
98+
digest="${{ steps.build.outputs.digest }}"
99+
touch "/tmp/digests/app/${digest#sha256:}"
100+
101+
- name: Upload digest
102+
uses: actions/upload-artifact@v4
103+
with:
104+
name: digests
105+
path: /tmp/digests
106+
if-no-files-found: error
107+
retention-days: 1

packages/zitadel-proto/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"sideEffects": false,
1616
"scripts": {
17-
"generate": "buf generate https://github.com/zitadel/zitadel.git#ref=02617cf17fdde849378c1a6b5254bbfb2745b164 --path ./proto/zitadel",
17+
"generate": "buf generate https://github.com/zitadel/zitadel.git --path ./proto/zitadel",
1818
"clean": "rm -rf zitadel .turbo node_modules google protoc-gen-openapiv2 validate"
1919
},
2020
"dependencies": {

0 commit comments

Comments
 (0)