You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blog-astro/build.sh

11 lines
280 B
Bash

#!/bin/bash
REGISTRY=registry.sakal.us
IMAGE_NAME=blog-astro
# get version from package.json and remove quotes:
VERSION=$(pnpm pkg get version | xargs)
docker build -t "${REGISTRY}/${IMAGE_NAME}:v${VERSION}" --target final .
docker push "${REGISTRY}/${IMAGE_NAME}:v${VERSION}"