This commit is contained in:
@@ -21,8 +21,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
apt-get update
|
apt-get update -qq
|
||||||
apt-get install -y --no-install-recommends openssh-client ca-certificates
|
apt-get install -y -qq --no-install-recommends openssh-client ca-certificates
|
||||||
|
|
||||||
DEPLOY_PORT="${DEPLOY_PORT:-22}"
|
DEPLOY_PORT="${DEPLOY_PORT:-22}"
|
||||||
DEPLOY_PATH="${DEPLOY_PATH:-/home/ubuntu/low-level-guy.com}"
|
DEPLOY_PATH="${DEPLOY_PATH:-/home/ubuntu/low-level-guy.com}"
|
||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
git fetch origin main
|
git fetch origin main
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
|
|
||||||
docker build -t lowlevelguycom:latest .
|
docker build --quiet -t lowlevelguycom:latest .
|
||||||
|
|
||||||
docker stop low-level-guy-com || true
|
docker stop low-level-guy-com || true
|
||||||
docker rm low-level-guy-com || true
|
docker rm low-level-guy-com || true
|
||||||
@@ -66,4 +66,6 @@ jobs:
|
|||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
-p 5000:5000 \
|
-p 5000:5000 \
|
||||||
lowlevelguycom:latest
|
lowlevelguycom:latest
|
||||||
|
|
||||||
|
docker ps --filter name=low-level-guy-com --format '{{.Names}} {{.Status}} {{.Ports}}'
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user