...

Text file src/edge-infra.dev/hack/k3d/publish-pallet.sh

Documentation: edge-infra.dev/hack/k3d

     1COUCHDB_IMAGE_TAG="image: us-east1-docker.pkg.dev/ret-edge-pltf-infra/thirdparty/couchdb:3.4.2"
     2NEW_COUCHDB_IMAGE_TAG="image: couchdb:3.4.2"
     3
     4lift="$1"
     5tag="$2"
     6
     7echo "Pallet tag: $tag"
     8
     9rm ../../config/pallets/edge/datasync/datasync/pallet.yaml || true
    10mkdir ../../config/pallets/edge/datasync/datasync || true
    11cp pallet.yaml ../../config/pallets/edge/datasync/datasync/pallet.yaml
    12sed -i -e "s#$COUCHDB_IMAGE_TAG#$NEW_COUCHDB_IMAGE_TAG#g" ../../config/pallets/edge/datasync/couchdb/store/couchdb-statefulsets.yaml
    13$lift -- pack --push --tag="$tag" config/pallets/edge/datasync/datasync
    14sed -i -e "s#$NEW_COUCHDB_IMAGE_TAG#$COUCHDB_IMAGE_TAG#g" ../../config/pallets/edge/datasync/couchdb/store/couchdb-statefulsets.yaml
    15rm -rf ../../config/pallets/edge/datasync/datasync

View as plain text