Fixes to pipeline
This commit is contained in:
parent
a5a3ba405c
commit
546ea9a093
@ -7,5 +7,5 @@ build:
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- docker login -u $USERNAME -p $PASSWORD gitlab.wojciechkozlowski.eu:8443
|
||||
- docker login -u $USERNAME -p $PASSWORD gitlab.wojciechkozlowski.eu/v2/:8443
|
||||
- make all
|
||||
|
@ -4,4 +4,4 @@ fe00::0 ip6-localnet
|
||||
ff00::0 ip6-mcastprefix
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
192.168.0.205 gitlab.wojciechkozlowski.eu
|
||||
192.168.1.205 gitlab.wojciechkozlowski.eu
|
||||
|
25
update.sh
25
update.sh
@ -36,28 +36,9 @@ echo -e "${CYAN}[${SCRIPT}] Start the containers${NC}"
|
||||
service loki-server start
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Wait for containers to start.
|
||||
# Remove untagged images.
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
echo -e "${CYAN}[${SCRIPT}] Wait ${SLEEP_TIME}s for containers to start${NC}"
|
||||
echo -e "${CYAN}[${SCRIPT}] Remove untagged images${NC}"
|
||||
|
||||
sleep $SLEEP_TIME
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Remove unused images.
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
ACTIVE=$(systemctl status loki-server.service | grep "active (running)" -c)
|
||||
|
||||
if [[ $ACTIVE == 1 ]]
|
||||
then
|
||||
|
||||
echo -e "${CYAN}[${SCRIPT}] Remove unused images${NC}"
|
||||
|
||||
yes | docker image prune -a
|
||||
|
||||
else
|
||||
|
||||
echo -e "${RED}[${SCRIPT}] Problem with service activation${NC}"
|
||||
|
||||
fi
|
||||
yes | docker image prune
|
||||
|
Reference in New Issue
Block a user