| giolekva | 603e73a | 2021-10-22 14:46:45 +0400 | [diff] [blame] | 1 | clean: |
| giolekva | 6f3e233 | 2021-12-04 19:42:13 +0400 | [diff] [blame] | 2 | rm -f server_* |
| giolekva | 603e73a | 2021-10-22 14:46:45 +0400 | [diff] [blame] | 3 | |
| giolekva | 6f3e233 | 2021-12-04 19:42:13 +0400 | [diff] [blame] | 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 server_arm64 *.go |
| giolekva | 603e73a | 2021-10-22 14:46:45 +0400 | [diff] [blame] | 10 | |
| giolekva | 6f3e233 | 2021-12-04 19:42:13 +0400 | [diff] [blame] | 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 server_amd64 *.go |
| giolekva | 603e73a | 2021-10-22 14:46:45 +0400 | [diff] [blame] | 17 | |
| Giorgi Lekveishvili | 4d2784d | 2023-06-01 14:27:32 +0400 | [diff] [blame] | 18 | push: clean build_arm64 # build_amd64 |
| Giorgi Lekveishvili | 8be0b94 | 2023-06-13 13:29:21 +0400 | [diff] [blame] | 19 | podman build --tag=giolekva/auth-ui:latest . |
| 20 | podman push giolekva/auth-ui:latest |