Skip to content

Commit

Permalink
chore(docker): adapt name of image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Jul 29, 2024
1 parent c1fc70b commit 5d98667
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/server/scripts/deploy-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ function run() {
)
}
buildDockerImage({
name: 'api.serlo.org/server',
name: 'server',
context: '../..',
envName,
})
buildDockerImage({
name: 'api.serlo.org/swr-queue-worker',
name: 'swr-queue-worker',
context: '../..',
envName,
})
}

function buildDockerImage({ name, context, envName }: DockerImageOptions) {
const registry = process.env.DOCKER_REGISTRY || 'ghcr.io'
const repository = process.env.DOCKER_REPOSITORY || `serlo/${name}`
const repository = process.env.DOCKER_REPOSITORY || `serlo/api.serlo.org/${name}`
const remoteName = `${registry}/${repository}`
const date = new Date()
const timestamp = `${date.toISOString().split('T')[0]}-${date.getTime()}`
Expand Down Expand Up @@ -60,7 +60,7 @@ function buildDockerImage({ name, context, envName }: DockerImageOptions) {
...tags.flatMap((tag) => ['-t', tag]),
context,
'--build-arg',
`image=${name.replace('api-', '')}`,
`image=${name}`,
],
{ stdio: 'inherit' },
)
Expand Down

0 comments on commit 5d98667

Please sign in to comment.