Skip to content

Commit

Permalink
fix: Tag for multi aarch
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 12, 2024
1 parent e92049c commit 2119760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dev-env-as-code/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Build
## Build (Doesn't work)

docker build .
docker build --build-arg TARGETARCH=amd64 --build-arg BUILDPLATFORM=linux/amd64 .
5 changes: 2 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2119760

Please sign in to comment.