Commit Graph

56 Commits

Author SHA1 Message Date
silverwind f3a5cc97dc Upgrade to Node 20 (#26)
Same as in https://github.com/go-gitea/gitea/pull/24524.

Reviewed-on: https://gitea.com/gitea/test-env/pulls/26
Co-authored-by: silverwind <me@silverwind.io>
Co-committed-by: silverwind <me@silverwind.io>
2023-06-01 18:21:00 +00:00
James712346 7d38483860 Added `-w 0` to base64 command for credientals produce a base64 value larger than 76 charters (#25)
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>
2023-05-03 22:23:00 +08:00
techknowlogick 9a7d3d6036 install nodejs into the container 2023-05-02 09:07:55 +08:00
Zettat123 7e0fd677a1 Fix build-publish workflow failure (#24)
Related to [this job failure](https://gitea.com/gitea/test-env/actions/runs/28/jobs/2)

See https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294

Reviewed-on: https://gitea.com/gitea/test-env/pulls/24
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
2023-04-28 21:49:08 +08:00
silverwind 23e4487a3a Add .editorconfig and .gitattributes (#23)
To ensure consistent file formatting

Reviewed-on: https://gitea.com/gitea/test-env/pulls/23
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: silverwind <me@silverwind.io>
Co-committed-by: silverwind <me@silverwind.io>
2023-04-12 00:49:03 +08:00
harryzcy ce003171ea Bump golangci-lint and git version (#21)
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>
2023-04-06 20:36:14 +08:00
techknowlogick fc425cbf02 Update 'Dockerfile' 2023-03-14 16:29:24 +08:00
techknowlogick 09b99f8979 Update 'Dockerfile' 2023-03-14 16:26:29 +08:00
techknowlogick e09c6e2081 add safe directories for git 2023-03-14 15:53:32 +08:00
techknowlogick 9d5f2f3e1a Use Gitea Actions to build image (#20)
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>
2023-03-14 15:51:28 +08:00
Kyle 56e84fe1c2 version-lock git at v2.38.4 (#19)
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>
2023-02-28 23:41:42 +08:00
John Olheiser e3b724b24d Put docker invocation in expression block (#18)
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>
2023-02-24 02:31:09 +08:00
techknowlogick b00b104713 Update 'Dockerfile' 2023-02-03 11:31:08 +08:00
techknowlogick ee83815a4c Update 'README.md' 2023-01-18 04:38:58 +08:00
techknowlogick 4b3ad8cafd bump git & linter version 2023-01-18 04:38:34 +08:00
techknowlogick 41f4822383 Update 'README.md' 2022-12-13 06:54:54 +08:00
techknowlogick d42ced5d58 git v2.39.0 2022-12-13 02:33:20 +08:00
harryzcy e590ad4c9a Update README.md to reflect correct versions (#17)
Reviewed-on: https://gitea.com/gitea/test-env/pulls/17
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: pat-s <pat-s@noreply.gitea.io>
Co-authored-by: harryzcy <harryzcy@noreply.gitea.io>
Co-committed-by: harryzcy <harryzcy@noreply.gitea.io>
2022-11-09 22:38:54 +08:00
techknowlogick 2b0492fae4 git 2.38.1 2022-10-19 03:46:25 +08:00
techknowlogick ad24f35bc8 v2.38.0 2022-10-04 05:03:43 +08:00
techknowlogick 1e842800e2 git v2.37.3 2022-09-21 21:54:54 +08:00
Lunny Xiao 435bb386ae Bump golangci-lint (#14)
Reviewed-on: https://gitea.com/gitea/test-env/pulls/14
Reviewed-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-09-02 04:36:21 +08:00
techknowlogick 8dc2bc1d2c Update '.drone.yml' 2022-09-02 04:35:52 +08:00
techknowlogick ebd58e46f0 use go 1.19 2022-09-02 04:35:23 +08:00
kdumontnu 0b848c8554 Use same git version as production alpine 3.16 (#15)
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>
2022-09-02 04:34:49 +08:00
techknowlogick 29d159aa00 update docs [skip ci] 2022-04-21 09:22:40 +08:00
techknowlogick 46621d15e4 bump git & lint 2022-04-21 09:21:44 +08:00
techknowlogick 5926db1574 CLI test included in build 2022-03-17 03:49:07 +08:00
techknowlogick 39a7a52a4e Update 'Dockerfile' 2022-03-17 03:44:52 +08:00
techknowlogick 02df843254 update docs [skip ci] 2022-03-16 10:22:14 +08:00
techknowlogick 71b7023848 update go, git & golangci-lint 2022-03-16 10:15:21 +08:00
techknowlogick 75ff84b393 update to git 2.35.0
Signed-off-by: techknowlogick <techknowlogick@gitea.io>
2022-01-26 06:41:46 +08:00
Gusted 64076dd3c0 Bump golangci-lint (#13)
- Related: https://github.com/go-gitea/gitea/pull/18411

Reviewed-on: https://gitea.com/gitea/test-env/pulls/13
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-committed-by: Gusted <williamzijl7@hotmail.com>
2022-01-26 06:40:41 +08:00
Wim 701cb2fcbd Update to bullseye and git 2.34.1 (#12)
bullseye is needed for newer OpenSSH which support ssh-signing using
ssh-keygen -Y sign

Needed for https://github.com/go-gitea/gitea/pull/17743

Co-authored-by: Wim <wim@42.be>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/12
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Wim <42wim@noreply.gitea.io>
Co-committed-by: Wim <42wim@noreply.gitea.io>
2021-12-02 13:34:31 +08:00
dachary 2f17425104 allow override of gid/uid from the build command (#11)
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>
2021-11-29 05:55:33 +08:00
Gusted 3bf763c245 Update golangci-lint (#10)
- Download the newest version of golangci-lint.
- Use the recommended install script.
- Relavent: https://github.com/go-gitea/gitea/pull/17647

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/10
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Gusted <gusted@noreply.gitea.io>
Co-committed-by: Gusted <gusted@noreply.gitea.io>
2021-11-16 13:47:33 +08:00
dachary 39572dd672 update versions in the README (#9)
Co-authored-by: Loïc Dachary <loic@dachary.org>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/9
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: pat-s <pat-s@noreply.gitea.io>
Co-authored-by: dachary <dachary@noreply.gitea.io>
Co-committed-by: dachary <dachary@noreply.gitea.io>
2021-10-17 19:48:17 +08:00
techknowlogick 7fe8076d27 Update 'Dockerfile' 2021-09-29 04:14:03 +08:00
techknowlogick 82d57b357a Update 'Dockerfile' 2021-09-29 04:08:50 +08:00
techknowlogick 946a559371 Update 'Dockerfile' 2021-09-29 04:05:18 +08:00
techknowlogick 1ff26f7746 Update 'Dockerfile' 2021-09-29 03:59:15 +08:00
techknowlogick 9806bca297 revert to 1.37.0 2021-09-29 01:20:33 +08:00
techknowlogick 558e35c77d Update 'Dockerfile' 2021-09-29 01:06:59 +08:00
techknowlogick dc92ace254 update golangci-lint 2021-09-29 01:05:15 +08:00
techknowlogick b632974033 Update 'Dockerfile' 2021-09-29 01:03:24 +08:00
techknowlogick 524f98af99 Update 'Dockerfile' 2021-09-29 01:02:58 +08:00
techknowlogick 35654ada42 add a non-root user to testing image 2021-09-29 00:58:25 +08:00
techknowlogick 5cbc2c5b39 update to go1.17 and git 2.33.0 (#8)
Signed-off-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/8
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-committed-by: techknowlogick <techknowlogick@gitea.io>
2021-08-23 21:40:01 +08:00
Lunny Xiao cfc54f9eac Update README and update go1.6 version (#7)
As title.

Reviewed-on: https://gitea.com/gitea/test-env/pulls/7
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-03-12 23:04:57 +08:00
6543 2e505962c7 Upgrade git to v2.30.2 (#6)
Reviewed-on: https://gitea.com/gitea/test-env/pulls/6
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-03-12 10:04:23 +08:00