Fixes to pipeline
This commit is contained in:
parent
a5a3ba405c
commit
546ea9a093
@ -7,5 +7,5 @@ build:
|
|||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- docker login -u $USERNAME -p $PASSWORD gitlab.wojciechkozlowski.eu:8443
|
- docker login -u $USERNAME -p $PASSWORD gitlab.wojciechkozlowski.eu/v2/:8443
|
||||||
- make all
|
- make all
|
||||||
|
@ -4,4 +4,4 @@ fe00::0 ip6-localnet
|
|||||||
ff00::0 ip6-mcastprefix
|
ff00::0 ip6-mcastprefix
|
||||||
ff02::1 ip6-allnodes
|
ff02::1 ip6-allnodes
|
||||||
ff02::2 ip6-allrouters
|
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
|
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
|
yes | docker image prune
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
|
||||||
# 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
|
|
||||||
|
Reference in New Issue
Block a user