If a username, and password that produces a base64 value larger than 76 characters, base64 will add \n to the output to wrap the text. The \n is then moved to the ~/.docker/config.json, that would break build image step producing the error of
```
WARNING: Error loading config file: /root/.docker/config.json: invalid character '\n' in string literal
```
Reviewed-on: https://gitea.com/gitea/test-env/pulls/25
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io>
Co-authored-by: James712346 <james712346@noreply.gitea.io>
Co-committed-by: James712346 <james712346@noreply.gitea.io>
This should also fix the CI issue in gitea main repo.
Co-authored-by: harryzcy <harry@harryzheng.com>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/21
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
Co-authored-by: harryzcy <harryzcy@noreply.gitea.io>
Co-committed-by: harryzcy <harryzcy@noreply.gitea.io>
This also enhances the image to use build arguments so that multiple versions of go can be used.
Reviewed-on: https://gitea.com/gitea/test-env/pulls/20
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-committed-by: techknowlogick <techknowlogick@gitea.io>
Feel free to reject this, but I feel we should be building the test image with the same version of git we are deploying in released docker images.
Since we're using alpine 3.17, that should be `2.38.4`: https://pkgs.alpinelinux.org/packages?name=git&branch=v3.17&repo=&arch=&maintainer=
Reviewed-on: https://gitea.com/gitea/test-env/pulls/19
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
Co-authored-by: Kyle <kyle@noreply.gitea.io>
Co-committed-by: Kyle <kyle@noreply.gitea.io>
May need more investigation on why it was rendering as latex, but either way this is likely more correct for the context.
Reviewed-on: https://gitea.com/gitea/test-env/pulls/18
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: John Olheiser <john+gitea@jolheiser.com>
Co-committed-by: John Olheiser <john+gitea@jolheiser.com>
Use the same version as alpine 3.16
```
git version 2.36.2
```
Reviewed-on: https://gitea.com/gitea/test-env/pulls/15
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: kdumontnu <kdumontnu@noreply.gitea.io>
Co-committed-by: kdumontnu <kdumontnu@noreply.gitea.io>
It is useful when running from a development environment with
a setup identical to the CI.
Signed-off-by: Loïc Dachary <loic@dachary.org>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/11
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: dachary <dachary@noreply.gitea.io>
Co-committed-by: dachary <dachary@noreply.gitea.io>