-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for manual deployment
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,28 @@ bazel run //scripts:run_server | |
|
||
You can access the API via `curl`, see [the cmd/server README](/cmd/server/README.md) for more details and exact commands. | ||
|
||
## Deploying | ||
|
||
This repo doesn't currently have deployment via GitHub Actions. To manually deploy the service: | ||
|
||
```bash | ||
az acr login --name rmisa | ||
bazel run --@io_bazel_rules_go//go/config:pure //cmd/server:push_image | ||
|
||
# If you get an unauthenticated error from the above command, you can run: | ||
bazel build --@io_bazel_rules_go//go/config:pure //cmd/server:image_tarball | ||
docker load < bazel-bin/cmd/server/image_tarball/tarball.tar | ||
docker tag <sha from previous step, without 'sha256:' prefix> rmisa.azurecr.io/credsrv | ||
docker push rmisa.azurecr.io/credsrv | ||
|
||
|
||
# Now that the updated image has been pushed, deploy it with something like: | ||
az containerapp update \ | ||
-g rmi-credsrv-dev \ | ||
-n credsrv-dev \ | ||
-i rmisa.azurecr.io/credsrv:latest | ||
``` | ||
|
||
## Security | ||
|
||
Please report security issues to [email protected], or by using one of | ||
|