mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 08:37:56 +02:00
change: Always pull images
This commit is contained in:
@@ -108,5 +108,7 @@ jobs:
|
|||||||
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.env }}
|
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.env }}
|
||||||
for f in ~/stack-config/*.yaml; do
|
for f in ~/stack-config/*.yaml; do
|
||||||
NAME=$(basename "$f" .yaml)
|
NAME=$(basename "$f" .yaml)
|
||||||
|
IMAGE=$(grep -oE 'image: *[^ ]+' "$f" | sed 's/^image: *//')
|
||||||
|
docker pull "$IMAGE"
|
||||||
docker stack deploy -c "$f" "$NAME" --detach=false
|
docker stack deploy -c "$f" "$NAME" --detach=false
|
||||||
done
|
done
|
||||||
Reference in New Issue
Block a user