From 3fed10b441c3b36210f99a2c764c2d3b9bd5eada Mon Sep 17 00:00:00 2001 From: Berend Holtland Date: Tue, 2 Apr 2024 14:31:17 +0200 Subject: [PATCH] Update readme --- README.md | 15 +++++++++------ buildandpush.sh | 17 ----------------- 2 files changed, 9 insertions(+), 23 deletions(-) delete mode 100755 buildandpush.sh diff --git a/README.md b/README.md index 7a9fb01..9560f55 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,10 @@ Todo: - [ ] Support for authorization - [ ] Terminate session on disconnect - [ ] Simulate being offline (and buffering commands) -- [ ] Time travel -- [ ] OCPP 2.1 Support +- [x] Time travel +- [x] OCPP 2.1 Support - [ ] Animation for plugging in cable -- [ ] Animation for cars +- [x] Animation for cars - [ ] Animation for connectivity on the station - [ ] Tweak UI for big screens - [ ] Tweak responsiveness for mobile @@ -99,6 +99,9 @@ object `window.__env_conf`. ### Deployment -1. In case you're using gcloud, be sure to run: -`gcloud auth configure-docker ` (region example `europe-west3-docker.pkg.dev`) -2. Run `bash buildandpush.sh ` +deployment to staging happens automatically when pushing to `master`. + +to deploy to production: +- Grab the hash of the image that you want to deploy from https://quay.io/repository/road/chargestation?tab=tags +- Update the hash in e-flux/deployment/environments/production/services/chargestation/chargestation-deployment.yml and merge to master (using a PR of course) + diff --git a/buildandpush.sh b/buildandpush.sh deleted file mode 100755 index 26fdcb4..0000000 --- a/buildandpush.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -git checkout master && git pull - -resource=$1 -latestCommit=$(git rev-parse HEAD) - -if [ -z "$latestCommit" ] -then - echo "No commit found" - exit 1 -fi - -docker build -t $resource:$latestCommit . - -docker tag $resource:$latestCommit $resource:latest -docker push $resource:$latestCommit -docker push $resource:latest