Skip to content

Commit

Permalink
feat: arm64 and amd64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
krestaino committed Jan 9, 2024
1 parent e20f915 commit ffc501a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.3.0
14 changes: 7 additions & 7 deletions build_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ set -e
# Read version from the VERSION file
VERSION=$(cat VERSION)

# Build the Docker image with the version tag
docker build -t krestaino/sptnr:$VERSION .
# Set up the builder instance (only needs to be done once, so you can comment this out after the first run)
# docker buildx create --name mybuilder --use
# docker buildx inspect mybuilder --bootstrap

# Tag the built image as latest
docker tag krestaino/sptnr:$VERSION krestaino/sptnr:latest
# Build and push the Docker image for both arm64 and amd64 platforms with the version tag
docker buildx build --platform linux/arm64,linux/amd64 -t krestaino/sptnr:$VERSION . --push

# Push both tags to the Docker registry
docker push krestaino/sptnr:$VERSION
docker push krestaino/sptnr:latest
# Build and push the 'latest' tag as well
docker buildx build --platform linux/arm64,linux/amd64 -t krestaino/sptnr:latest . --push

echo "Docker images tagged and pushed: $VERSION and latest"

0 comments on commit ffc501a

Please sign in to comment.