You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Gallery.Server/wwwroot/content/deploy.md
+1-10Lines changed: 1 addition & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,20 +41,12 @@ docker-compose -f ~/nginx-proxy-compose.yml up -d
41
41
42
42
This will run an nginx reverse proxy along with a companion container that will watch for additional containers in the same docker network and attempt to initialize them with valid TLS certificates.
43
43
44
-
## GitHub Repository setup
45
-
This template pushes the API server dockerized application to GitHub Container Repository. To do this, you will first need to [create a Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) specifically for use by `release.yml` GitHub Actions.
46
-
47
-
This token will need to have access to `write:packages` to the GitHub Package Registry, which includes the GitHub Container Registry.
48
-
49
-
The first time the `release.yml` process successfully runs and creates your GitHub Container Repository for your project, you then have the option to [upgrade the workflow to use GITHUB_TOKEN](https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio) replacing the `CR_PAT`.
50
-
51
44
### GitHub Actions secrets
52
45
53
-
The `release.yml`assumes 5 secrets have been set:
46
+
The `release.yml`uses the following secrets.
54
47
55
48
| Required Secrets | Description |
56
49
| -- | -- |
57
-
|`CR_PAT`| GitHub Personal Token with read/write access to packages |
58
50
|`DEPLOY_API`| Hostname used to SSH deploy .NET App to, this can either be an IP address or subdomain with A record pointing to the server |
59
51
|`DEPLOY_USERNAME`| Username to log in with via SSH e.g, **ubuntu**, **ec2-user**, **root**|
60
52
|`DEPLOY_KEY`| SSH private key used to remotely access deploy .NET App |
@@ -69,7 +61,6 @@ To also enable deploying static assets to a CDN:
69
61
These secrets can use the [GitHub CLI](https://cli.github.com/manual/gh_secret_set) for ease of creation. Eg, using the GitHub CLI the following can be set.
70
62
71
63
```bash
72
-
gh secret set CR_PAT -b"<CR_PAT>"
73
64
gh secret set DEPLOY_API -b"<DEPLOY_API>"
74
65
gh secret set DEPLOY_USERNAME -b"<DEPLOY_USERNAME>"
0 commit comments