|
27 | 27 | jobs:
|
28 | 28 | linux-windows:
|
29 | 29 | runs-on: ubuntu-latest
|
| 30 | + env: |
| 31 | + # Necessary for Docker manifest |
| 32 | + DOCKER_CLI_EXPERIMENTAL: "enabled" |
30 | 33 | steps:
|
31 | 34 | - uses: actions/checkout@v3
|
32 | 35 | with:
|
33 | 36 | fetch-depth: 0
|
34 | 37 |
|
| 38 | + # If the event that triggered the build was an annotated tag (which our |
| 39 | + # tags are supposed to be), actions/checkout has a bug where the tag in |
| 40 | + # question is only a lightweight tag and not a full annotated tag. This |
| 41 | + # command seems to fix it. |
| 42 | + # https://github.com/actions/checkout/issues/290 |
| 43 | + - name: Fetch git tags |
| 44 | + run: git fetch --tags --force |
| 45 | + |
35 | 46 | - uses: actions/setup-go@v3
|
36 | 47 | with:
|
37 | 48 | go-version: "~1.18"
|
@@ -133,6 +144,14 @@ jobs:
|
133 | 144 | with:
|
134 | 145 | fetch-depth: 0
|
135 | 146 |
|
| 147 | + # If the event that triggered the build was an annotated tag (which our |
| 148 | + # tags are supposed to be), actions/checkout has a bug where the tag in |
| 149 | + # question is only a lightweight tag and not a full annotated tag. This |
| 150 | + # command seems to fix it. |
| 151 | + # https://github.com/actions/checkout/issues/290 |
| 152 | + - name: Fetch git tags |
| 153 | + run: git fetch --tags --force |
| 154 | + |
136 | 155 | - uses: actions/setup-go@v3
|
137 | 156 | with:
|
138 | 157 | go-version: "~1.18"
|
@@ -210,14 +229,19 @@ jobs:
|
210 | 229 | needs:
|
211 | 230 | - linux-windows
|
212 | 231 | - darwin
|
213 |
| - env: |
214 |
| - # Necessary for Docker manifest |
215 |
| - DOCKER_CLI_EXPERIMENTAL: "enabled" |
216 | 232 | steps:
|
217 | 233 | - uses: actions/checkout@v3
|
218 | 234 | with:
|
219 | 235 | fetch-depth: 0
|
220 | 236 |
|
| 237 | + # If the event that triggered the build was an annotated tag (which our |
| 238 | + # tags are supposed to be), actions/checkout has a bug where the tag in |
| 239 | + # question is only a lightweight tag and not a full annotated tag. This |
| 240 | + # command seems to fix it. |
| 241 | + # https://github.com/actions/checkout/issues/290 |
| 242 | + - name: Fetch git tags |
| 243 | + run: git fetch --tags --force |
| 244 | + |
221 | 245 | - name: Docker Login
|
222 | 246 | uses: docker/login-action@v2
|
223 | 247 | with:
|
|
0 commit comments