Skip to content

Commit

Permalink
Updating build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mliljedahl committed Oct 8, 2021
1 parent d355728 commit 7aa52c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Build

[Good article](https://medium.com/@artur.klauser/building-multi-architecture-docker-images-with-buildx-27d80f7e2408) about multi arc builds.

## dockerhub

```
$ docker buildx build --push --platform linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64,linux/386 -t mliljedahl/telldus-core-mqtt:latest -t mliljedahl/telldus-core-mqtt:1.0.0 .
$ docker build -t telldus-core-mqtt:latest -t mliljedahl/telldus-core-mqtt:latest -t mliljedahl/telldus-core-mqtt:1.0.0 .
$ docker login
$ docker push mliljedahl/telldus-core-mqtt
Expand All @@ -11,6 +14,7 @@ $ docker push mliljedahl/telldus-core-mqtt
## github

```
$ docker buildx build --push --platform linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64,linux/386 -t ghcr.io/mliljedahl/telldus-core-mqtt:latest -t ghcr.io/mliljedahl/telldus-core-mqtt:1.0.0 .
$ docker build -t telldus-core-mqtt:latest -t ghcr.io/mliljedahl/telldus-core-mqtt:latest -t ghcr.io/mliljedahl/telldus-core-mqtt:1.0.0 .
$ docker login ghcr.io
$ docker push ghcr.io/mliljedahl/telldus-core-mqtt
Expand Down

0 comments on commit 7aa52c2

Please sign in to comment.