mirror of
https://github.com/krestaino/sptnr.git
synced 2026-06-13 06:19:32 -04:00
Merge branch 'main' of github.com:krestaino/sptnr into develop
This commit is contained in:
+7
-7
@@ -6,14 +6,14 @@ set -e
|
|||||||
# Read version from the VERSION file
|
# Read version from the VERSION file
|
||||||
VERSION=$(cat VERSION)
|
VERSION=$(cat VERSION)
|
||||||
|
|
||||||
# Build the Docker image with the version tag
|
# Set up the builder instance (only needs to be done once, so you can comment this out after the first run)
|
||||||
docker build -t krestaino/sptnr:$VERSION .
|
# docker buildx create --name mybuilder --use
|
||||||
|
# docker buildx inspect mybuilder --bootstrap
|
||||||
|
|
||||||
# Tag the built image as latest
|
# Build and push the Docker image for both arm64 and amd64 platforms with the version tag
|
||||||
docker tag krestaino/sptnr:$VERSION krestaino/sptnr:latest
|
docker buildx build --platform linux/arm64,linux/amd64 -t krestaino/sptnr:$VERSION . --push
|
||||||
|
|
||||||
# Push both tags to the Docker registry
|
# Build and push the 'latest' tag as well
|
||||||
docker push krestaino/sptnr:$VERSION
|
docker buildx build --platform linux/arm64,linux/amd64 -t krestaino/sptnr:latest . --push
|
||||||
docker push krestaino/sptnr:latest
|
|
||||||
|
|
||||||
echo "Docker images tagged and pushed: $VERSION and latest"
|
echo "Docker images tagged and pushed: $VERSION and latest"
|
||||||
|
|||||||
Reference in New Issue
Block a user