Skip to content

Commit e924c90

Browse files
authored
カスタム sablier イメージをビルドするように (#998)
1 parent 467eae4 commit e924c90

File tree

6 files changed

+80
-2
lines changed

6 files changed

+80
-2
lines changed

.github/workflows/preview.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,41 @@ jobs:
4646
# NOTE: once https://github.com/argoproj/argo-cd/pull/13199 is released we can use short sha
4747
tags: ghcr.io/traptitech/ns-dashboard:preview-${{ env.PR_NUMBER }}-${{ github.event.pull_request.head.sha }}
4848
cache-from: type=registry,ref=ghcr.io/traptitech/ns-dashboard:buildcache
49+
50+
build-sablier-image:
51+
name: Build Sablier Image
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Set PR_NUMBER env
55+
run: echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV
56+
57+
- uses: actions/checkout@v4
58+
with:
59+
ref: ${{ github.event.pull_request.head.sha }}
60+
persist-credentials: false
61+
62+
- name: Set up QEMU
63+
uses: docker/setup-qemu-action@v3
64+
- name: Set up Docker Buildx
65+
id: buildx
66+
uses: docker/setup-buildx-action@v3
67+
- name: Builder instance name
68+
run: echo ${{ steps.buildx.outputs.name }}
69+
- name: Available platforms
70+
run: echo ${{ steps.buildx.outputs.platforms }}
71+
72+
- name: Login to GitHub Container Registry
73+
uses: docker/login-action@v3
74+
with:
75+
registry: ghcr.io
76+
username: traptitech
77+
password: ${{ secrets.GITHUB_TOKEN }}
78+
79+
- name: Build
80+
uses: docker/build-push-action@v6
81+
with:
82+
context: sablier
83+
platforms: linux/amd64,linux/arm64
84+
push: true
85+
tags: ghcr.io/traptitech/ns-sablier:preview-${{ env.PR_NUMBER }}-${{ github.event.pull_request.head.sha }}
86+
cache-from: type=registry,ref=ghcr.io/traptitech/ns-sablier:buildcache

.github/workflows/release.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,49 @@ jobs:
128128
ghcr.io/traptitech/ns-dashboard:${{ env.APP_VERSION }}
129129
cache-from: type=registry,ref=ghcr.io/traptitech/ns-dashboard:buildcache
130130

131+
build-sablier-image:
132+
name: Build Sablier Image
133+
runs-on: ubuntu-latest
134+
steps:
135+
- uses: actions/checkout@v4
136+
- name: Set APP_VERSION env
137+
run: echo "APP_VERSION=$(echo ${GITHUB_REF:11})" >> $GITHUB_ENV
138+
139+
- name: Set up QEMU
140+
uses: docker/setup-qemu-action@v3
141+
- name: Set up Docker Buildx
142+
id: buildx
143+
uses: docker/setup-buildx-action@v3
144+
- name: Builder instance name
145+
run: echo ${{ steps.buildx.outputs.name }}
146+
- name: Available platforms
147+
run: echo ${{ steps.buildx.outputs.platforms }}
148+
149+
- name: Login to GitHub Container Registry
150+
uses: docker/login-action@v3
151+
with:
152+
registry: ghcr.io
153+
username: traptitech
154+
password: ${{ secrets.GITHUB_TOKEN }}
155+
156+
- name: Build
157+
uses: docker/build-push-action@v6
158+
with:
159+
context: sablier
160+
platforms: linux/amd64,linux/arm64
161+
push: true
162+
tags: |
163+
ghcr.io/traptitech/ns-sablier:latest
164+
ghcr.io/traptitech/ns-sablier:${{ env.APP_VERSION }}
165+
cache-from: type=registry,ref=ghcr.io/traptitech/ns-sablier:buildcache
166+
131167
dispatch-renovate:
132168
name: Dispatch Renovate
133169
runs-on: ubuntu-latest
134170
needs:
135171
- build-component-images
136172
- build-dashboard-image
173+
- build-sablier-image
137174
steps:
138175
- uses: actions/github-script@v7
139176
with:

.local-manifest/sablier/sablier-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ spec:
3030
subPath: .local-dev/config/sablier.yaml
3131
mountPath: /etc/sablier/sablier.yaml
3232
- name: project
33-
subPath: dashboard/sablier-theme
33+
subPath: sablier/themes
3434
mountPath: /etc/sablier/themes

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ services:
397397
volumes:
398398
- /var/run/docker.sock:/var/run/docker.sock
399399
- ./.local-dev/config/sablier.yaml:/etc/sablier/sablier.yaml
400-
- ./dashboard/sablier-theme:/etc/sablier/themes
400+
- ./sablier/themes:/etc/sablier/themes
401401

402402
traefik:
403403
image: traefik:3.1

sablier/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM sablierapp/sablier:1.8.2
2+
3+
COPY ./themes /etc/sablier/themes

0 commit comments

Comments
 (0)