Commit 6549b43
authored
[docker] fix docker release image (#2136)
## Summary
This PR addresses the issue of our previous approach to only publish the
latest version of devbox with `:latest` tag in dockerhub. It achieves 2
things:
1. fixes the previously broken github action to release a docker image
after every tag creation.
2. updates the dockerfile so that devbox binary doesn't automatically
upgrade to latest version upon first use. This allows docker pulls have
fixed versions.
## How was it tested?
Already tested on releasing 0.10.7 version to dockerhub as test.
- `docker pull jetpackio/devbox:0.10.7`
- `docker run jetpackio/devbox:0.10.7`
- confirm output shows devbox version 0.10.7 and doesn't upgrade to
latest version.
- same for devbox-root-user1 parent 6aebe96 commit 6549b43
File tree
3 files changed
+14
-11
lines changed- .github/workflows
- internal/devbox/generate/tmpl
3 files changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | | - | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | | - | |
| 42 | + | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | | - | |
| 56 | + | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | | - | |
| 66 | + | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | | - | |
| 23 | + | |
0 commit comments