Skip to content

Commit

Permalink
Merge pull request #2400 from amazeeio/final_1.12_picks
Browse files Browse the repository at this point in the history
Final 1.12 picks before alpha release
  • Loading branch information
Toby Bellwood authored Dec 15, 2020
2 parents 741c282 + 9fa2aaa commit 3977af4
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/docker-host/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ENV DOCKER_HOST=docker-host \
RUN fix-permissions /home

COPY update-push-images.sh /update-push-images.sh
COPY update-images.sh /update-images.sh
COPY prune-images.sh /prune-images.sh
COPY remove-exited.sh /remove-exited.sh

Expand Down
12 changes: 12 additions & 0 deletions images/docker-host/update-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash -e
set -x

if ! docker -H ${DOCKER_HOST} info &> /dev/null; then
echo "could not connect to ${DOCKER_HOST}"; exit 1
fi

# Iterates through all images that have the name of the repository we are interested in in it
for FULL_IMAGE in $(docker image ls --format "{{.Repository}}:{{.Tag}}" | grep -E "${REPOSITORY_TO_UPDATE}/" | grep -v none); do
# pull newest version of found image
docker pull ${FULL_IMAGE} | cat
done
12 changes: 12 additions & 0 deletions images/kubectl-build-deploy-dind/build-deploy-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1366,3 +1366,15 @@ if [ "${LAGOON_POSTROLLOUT_DISABLED}" != "true" ]; then
else
echo "post-rollout tasks are currently disabled LAGOON_POSTROLLOUT_DISABLED is set to true"
fi

##############################################
### PUSH the latest .lagoon.yml into lagoon-yaml configmap
##############################################

if kubectl --insecure-skip-tls-verify -n ${NAMESPACE} get configmap lagoon-yaml &> /dev/null; then
# replace it
kubectl --insecure-skip-tls-verify -n ${NAMESPACE} create configmap lagoon-yaml --from-file=.lagoon.yml -o yaml --dry-run | kubectl replace -f -
else
# create it
kubectl --insecure-skip-tls-verify -n ${NAMESPACE} create configmap lagoon-yaml --from-file=.lagoon.yml
fi
12 changes: 12 additions & 0 deletions images/oc-build-deploy-dind/build-deploy-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1364,3 +1364,15 @@ if [ "${LAGOON_POSTROLLOUT_DISABLED}" != "true" ]; then
else
echo "post-rollout tasks are currently disabled LAGOON_POSTROLLOUT_DISABLED is set to true"
fi

##############################################
### PUSH the latest .lagoon.yml into lagoon-yaml configmap
##############################################

if oc --insecure-skip-tls-verify -n ${OPENSHIFT_PROJECT} get configmap lagoon-yaml &> /dev/null; then
# replace it
oc --insecure-skip-tls-verify -n ${OPENSHIFT_PROJECT} create configmap lagoon-yaml --from-file=.lagoon.yml -o yaml --dry-run | oc replace -f -
else
# create it
oc --insecure-skip-tls-verify -n ${OPENSHIFT_PROJECT} create configmap lagoon-yaml --from-file=.lagoon.yml
fi

0 comments on commit 3977af4

Please sign in to comment.