chore: add deploy script for building and pushing to registry
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
IMAGE="registry.achmad.dev/kotobane:latest"
|
||||||
|
|
||||||
|
echo "==> Building for linux/amd64..."
|
||||||
|
docker buildx build --platform linux/amd64 \
|
||||||
|
--build-arg DIRECTUS_URL=https://cms.achmad.dev \
|
||||||
|
--build-arg DIRECTUS_TOKEN=JLsOYZIO5jvvYMTu_DepOwM581WyNLHS \
|
||||||
|
--build-arg NEXT_PUBLIC_DIRECTUS_URL=https://cms.achmad.dev \
|
||||||
|
--build-arg NEXT_PUBLIC_DIRECTUS_TOKEN=JLsOYZIO5jvvYMTu_DepOwM581WyNLHS \
|
||||||
|
--build-arg NEXT_PUBLIC_BASE_URL=https://kotobane.achmad.dev \
|
||||||
|
-t "$IMAGE" .
|
||||||
|
|
||||||
|
echo "==> Pushing to registry..."
|
||||||
|
docker push "$IMAGE"
|
||||||
|
|
||||||
|
echo "==> Done! Image: $IMAGE"
|
||||||
Reference in New Issue
Block a user