diff --git a/dev-env-as-code/README.md b/dev-env-as-code/README.md index 412a2718..57bf6c49 100644 --- a/dev-env-as-code/README.md +++ b/dev-env-as-code/README.md @@ -1,3 +1,3 @@ -## Build +## Build (Doesn't work) -docker build . \ No newline at end of file +docker build --build-arg TARGETARCH=amd64 --build-arg BUILDPLATFORM=linux/amd64 . \ No newline at end of file diff --git a/release.sh b/release.sh index 2e146681..8634a2c5 100755 --- a/release.sh +++ b/release.sh @@ -9,9 +9,8 @@ sed -i "s/repo_version = .*$/repo_version = \"Github $1\"/" ./rust-on-nails.com sed -i "s/repo_version = .*$/repo_version = \"Github $1\"/" ./rust-on-nails.com/content/_index.md sed -i "s/purtontech\/rust-on-nails-devcontainer:.*$/purtontech\/rust-on-nails-devcontainer:$1 AS development/" ./nails-devcontainer/.devcontainer/Dockerfile -docker pull $CONTAINER_NAME:latest -docker tag $CONTAINER_NAME:latest $CONTAINER_NAME:$VERSION -docker push $CONTAINER_NAME:$VERSION +# Create a multi-platform tag for the specified version by referencing the `latest` tag +docker buildx imagetools create -t $CONTAINER_NAME:$VERSION $CONTAINER_NAME:latest git add . git commit -am "chore(deployment): Update files with new version $1"