21
21
- [ Build Scripts] ( #build-scripts )
22
22
- [ Releasing] ( #releasing )
23
23
- [ Tagging a release] ( #tagging-a-release )
24
- - [ Prerequisites] ( #prerequisites )
25
- - [ If a release fails] ( #if-a-release-fails )
26
- - [ Github Releases & Dockerhub] ( #github-releases--dockerhub )
27
- - [ Prerequisites] ( #prerequisites-1 )
28
- - [ Snap] ( #snap )
29
- - [ Prerequisites] ( #prerequisites-2 )
30
- - [ Building a new snap base image] ( #building-a-new-snap-base-image )
24
+ - [ Snap] ( #snap )
31
25
- [ Updating Homebrew] ( #updating-homebrew )
32
26
33
27
<!-- markdown-toc end -->
@@ -204,8 +198,6 @@ To cut a release, push a new tag (versioning discussed below).
204
198
205
199
### Tagging a release
206
200
207
- ##### Prerequisites
208
-
209
201
1 . Run ` make changes ` to review the changes since the last
210
202
release. Based on the changes, decide what kind of release you are
211
203
doing (bugfix, feature or breaking).
@@ -220,14 +212,26 @@ To cut a release, push a new tag (versioning discussed below).
220
212
221
213
The new tag triggers the release.
222
214
223
- ##### Building a new snap base image
215
+ ### Snap
216
+
217
+ Snap packages are automatically built and uploaded as part of the GitHub Actions
218
+ release workflow.
219
+
220
+ To build a snap package locally for testing, first install ` snapcraft ` .
221
+
222
+ On Ubuntu, run:
223
+
224
+ sudo snap install snapcraft --classic
225
+
226
+ Or on MacOS, run:
227
+
228
+ brew install snapcraft
229
+
230
+ Finally, build the package by running:
231
+
232
+ make snap
224
233
225
- Occasionally, the snap build will break. When it does, it usually means that you need to update
226
- the custom base image we use to build the snap. The Dockerfile for that image lives in
227
- [ dockerfiles/Dockerfile.snap] ( https://github.com/digitalocean/doctl/blob/main/dockerfiles/Dockerfile.snap ) .
228
- The header of the Dockerfile has hints for updating the image, as well as instructions for building
229
- the image using ` make snap_image ` . Once you've built the image, the snap_image target will provide
230
- instructions for next steps.
234
+ More details about the snap package can be found in the ` snap/snapcraft.yaml ` file.
231
235
232
236
### Updating Homebrew
233
237
0 commit comments