From aae42cb2f9ab39b82f089fa2961352033f2849ee Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 4 Feb 2023 13:27:41 +0200 Subject: [PATCH] remove old scripts --- scripts/build.sh | 19 ------------------- scripts/release.sh | 22 ---------------------- 2 files changed, 41 deletions(-) delete mode 100644 scripts/build.sh delete mode 100644 scripts/release.sh diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100644 index 965cc60..0000000 --- a/scripts/build.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -echo "Welcome!" - -version="1.1.0" -registryPass="***********" - -echo "Create docker image with version $version." -docker image build --build-arg APP_VERSION=$version -t "network-resurrector-frontend:$version" . - -echo "Tag docker image with registry prefix." -docker tag network-resurrector-frontend:$version alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$version - -echo "Login to alpine-nexus registry." -docker login --username=admin --password=$registryPass alpine-nexus:8500 - -echo "Push image network-resurrector-frontend:$version to registry." -docker push alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$version - -echo "DONE!" \ No newline at end of file diff --git a/scripts/release.sh b/scripts/release.sh deleted file mode 100644 index bcd31cd..0000000 --- a/scripts/release.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -echo "Welcome!" - -version="1.1.0" -oldver="1.0.1" - -echo "Pull docker image network-resurrector-frontend:$version from registry." -docker pull alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$version - -echo "Stop old container." -docker stop network-resurrector-frontend && docker rm network-resurrector-frontend - -echo "Run new container." -docker run -d --name network-resurrector-frontend --restart=always -p 5009:80 alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$version - -echo "Remove old image network-resurrector-frontend:$oldver." -docker rmi alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$oldver - -echo "Get container logs:" -docker logs network-resurrector-frontend - -echo "DONE!" \ No newline at end of file