2022-06-25 01:40:12 +03:00
|
|
|
#!/bin/bash
|
|
|
|
echo "Welcome!"
|
|
|
|
|
2022-10-23 03:08:27 +03:00
|
|
|
version="1.4.5"
|
2022-06-25 01:40:12 +03:00
|
|
|
platform="linux/amd64,linux/arm64,linux/arm/v7"
|
2022-09-27 10:13:38 +03:00
|
|
|
appSubfolder="/reverse-proxy"
|
2022-11-26 16:49:27 +02:00
|
|
|
localRegistryPass="******************"
|
|
|
|
npmToken="******************"
|
2022-06-25 01:40:12 +03:00
|
|
|
|
|
|
|
echo "Login to alpine-nexus registry."
|
|
|
|
docker login --username=admin --password=$localRegistryPass alpine-nexus:8500
|
|
|
|
|
|
|
|
echo "Create docker image with version $version for platform $platform"
|
|
|
|
docker buildx build \
|
2022-09-27 10:13:38 +03:00
|
|
|
--build-arg APP_SUBFOLDER=$appSubfolder \
|
2022-06-25 01:40:12 +03:00
|
|
|
--build-arg APP_VERSION=$version \
|
2022-09-27 10:13:38 +03:00
|
|
|
--build-arg OWN_NPM_TOKEN=$npmToken \
|
2022-06-25 01:40:12 +03:00
|
|
|
--platform $platform \
|
|
|
|
--output=type=image,push=true,registry.insecure=true \
|
|
|
|
--push \
|
|
|
|
--tag alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:$version \
|
|
|
|
.
|
|
|
|
|
|
|
|
echo "Done!"
|