Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
natew committed Jan 26, 2025
1 parent 02b36d5 commit c3b2d93
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/chat/Dockerfile.chat → apps/chat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# for chat app

FROM node:22.4
FROM --platform=linux/amd64 node:22.4

ARG ONE_SERVER_URL

Expand Down
3 changes: 2 additions & 1 deletion apps/chat/src/ci/buildChatAppDocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ export async function buildChatAppDocker() {
}

return await buildDockerImage({
name: `chat-app`,
context: '../..',
image: 'Dockerfile.chat',
image: 'Dockerfile',
githubActor: 'natew',
githubToken: process.env.GITHUB_TOKEN,
})
Expand Down
5 changes: 3 additions & 2 deletions apps/chat/src/ci/buildDockerImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { info, setFailed } from '@actions/core'
import { exec } from '@actions/exec'

export async function buildDockerImage({
name,
image,
context,
githubActor,
githubToken,
}: { image: string; context: string; githubActor: string; githubToken: string }) {
const imageName = `ghcr.io/onejs/one/chat-app`
}: { name: string; image: string; context: string; githubActor: string; githubToken: string }) {
const imageName = `ghcr.io/onejs/one/${name}`
const tag = 'latest'

try {
Expand Down
2 changes: 1 addition & 1 deletion apps/chat/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default $config({

new sst.Secret('GITHUB_TOKEN', process.env.GITHUB_TOKEN)

const chatAppImage = `ghcr.io/onejs/one/chat-app:latest` //await buildChatAppDocker()
const chatAppImage = await buildChatAppDocker()

// const schemaJson = readFileSync('./src/zero/zero-schema.json', 'utf-8').replaceAll(/\s/g, '')

Expand Down

0 comments on commit c3b2d93

Please sign in to comment.