From fab9bf660e84764f01240cdde1e0e84dc94f33b9 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 13 Mar 2022 11:33:05 +0000 Subject: [PATCH 1/2] update instruction to update and deploy for new version --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ba4eccf..1766e02 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,29 @@ This repository is an Appwrite integration for Digitalocean marketplace 1-click app. ## Building + This uses [packer](packer.io) to build and create an snapshot. Following command will create a new snapshot with Appwrite 0.6.2 installation configured to run when user logs in in the image. ```shell export DIGITALOCEAN_TOKEN='' packer build appwrite.json -``` \ No newline at end of file +``` + +## Upgrading to New Version and Building an Image + +- Make the changes to update to the new version, these files should be changed + 1. in `scripts/02-setup-appwrite-scripts.sh` update docker pull commands to pull the images required for the version you are upgrading for + 2. in `files/var/lib/cloud/scripts/per-instance/01-run-appwrite.sh` update docker command with appwrite version for `appwrite/appwrite` image. + 3. update `scripts/90-cleanup.sh` and `scripts/99-image_check.sh` scripts if new changes to [https://github.com/digitalocean/marketplace-partners/tree/master/scripts](https://github.com/digitalocean/marketplace-partners/tree/master/scripts) + 4. update `appwrite.json`, `image_name` parameter with appropriate version to recognize the snapshot easily +- Push the changes in a new branch and create a PR +- Once reviewed and merged, release a new version and tag +- Releasing new tag will execute `.travis.yml` deploy command, which will create a new snapshot in Appwrite Labs in DigitalOcean account + +## Deploying to DigitalOcean Marketplace + +- Go to [https://cloud.digitalocean.com/images/snapshots/droplets](https://cloud.digitalocean.com/images/snapshots/droplets). You must be using Appwrite Labs account. +- Click on the More button on the appropriate snapshot in the list +- Click on **Update a 1-Click App` and you should be redirected to the appropriate page for updating the Appwrite marketplace image +- Update the details for the new version if any changes required and submit the app for marketplace review \ No newline at end of file From b8431174075d8d72a18d704ae179bcfebd1820de Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 14 Mar 2022 10:03:14 +0000 Subject: [PATCH 2/2] updates --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1766e02..2fc64db 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Integration for Digitalocean -This repository is an Appwrite integration for Digitalocean marketplace 1-click app. +This repository is an [Appwrite](https://appwrite.io/) integration for [DigitalOcean marketplace](https://www.digitalocean.com/products/marketplace) 1-click app. + +[Deploy Now](https://marketplace.digitalocean.com/apps/appwrite?refcode=5f0f79e89242&action=deploy) ## Building