| Giorgi Lekveishvili | 6d7dcb8 | 2023-12-20 14:44:42 +0400 | [diff] [blame^] | 1 | clean: |
| 2 | rm -f capture-config_* |
| 3 | |
| 4 | build_arm64: export CGO_ENABLED=0 |
| 5 | build_arm64: export GO111MODULE=on |
| 6 | build_arm64: export GOOS=linux |
| 7 | build_arm64: export GOARCH=arm64 |
| 8 | build_arm64: |
| 9 | go build -o capture-config_arm64 *.go |
| 10 | |
| 11 | build_amd64: export CGO_ENABLED=0 |
| 12 | build_amd64: export GO111MODULE=on |
| 13 | build_amd64: export GOOS=linux |
| 14 | build_amd64: export GOARCH=amd64 |
| 15 | build_amd64: |
| 16 | go build -o capture-config_amd64 *.go |
| 17 | |
| 18 | push_arm64: clean build_arm64 |
| 19 | podman build --platform linux/arm64 --tag=giolekva/capture-config:arm64 . |
| 20 | podman push giolekva/capture-config:arm64 |
| 21 | |
| 22 | push_amd64: clean build_amd64 |
| 23 | podman build --platform linux/amd64 --tag=giolekva/capture-config:amd64 . |
| 24 | podman push giolekva/capture-config:amd64 |
| 25 | |
| 26 | push: push_arm64 push_amd64 |
| 27 | podman manifest create giolekva/capture-config:latest giolekva/capture-config:arm64 giolekva/capture-config:amd64 |
| 28 | podman manifest push giolekva/capture-config:latest docker://docker.io/giolekva/capture-config:latest |
| 29 | podman manifest rm giolekva/capture-config:latest |