Commit Graph

83 Commits

Author SHA1 Message Date
Laurent Goderre 8739d1ef1a fixup 2024-05-14 10:28:52 -04:00
Orgad Shaneh 92f7975318 Add images for debian bookworm 2023-06-11 09:49:06 +03:00
Nick Schonning 5f3ea4e2a0
feat: Drop Node 12 for EOL 2022-04-30 2022-05-01 18:21:29 -04:00
Simen Bekkhus 3f6cb08991 fix: only update yarn if there are other changes to the dockerfile 2022-04-07 14:35:19 +02:00
Peter Dave Hello 01182bc019 Use `-V` instead of `-n` to sort in update.sh, fix #1636
Fix the problem that `update.sh` didn't pick up the latest version of
node.js v12: v12.22.10.

We should use `sort -V` instead of `sort -n` here. The order is a little
bit different:

| Result from `sort -V` | Result from `sort -n` |
| ---- | ---- |
| 0.0 | 0.0 |
| 1.0 | 1.0 |
| 2.0 | 2.0 |
| 3.0 | 3.0 |
| 3.1 | 3.1 |
| 4.0 | 4.0 |
| 5.0 | 5.0 |
| 6.0 | 6.0 |
| 7.0 | 7.0 |
| 8.0 | 8.0 |
| 8.1 | 8.1 |
| 9.0 | 9.0 |
| 9.1 | 9.1 |
| 10.0 | 10.0 |
| 11.0 | 11.0 |
| 11.1 | 11.1 |
| 12.0 | 12.0 |
| 13.0 | 13.0 |
| 13.1 | 13.1 |
| 14.0 | 14.0 |
| 14.1 | 14.1 |
| 15.0 | 15.0 |
| 16.0 | 16.0 |
| 16.1 | 16.1 |
| 16.2 | 16.2 |
| 16.3 | 16.3 |
| 17.0 | 17.0 |
| 18.0 | 18.0 |
| 18.1 | 18.1 |
| 18.2 | 18.2 |
| 18.3 | 18.3 |
| 18.4 | 18.4 |
| 19.0 | 19.0 |
| 19.1 | 19.1 |
| 20.0 | 20.0 |
| 20.1 | 20.1 |
| 20.2 | 20.2 |
| 21.0 | 21.0 |
| 22.0 | 22.0 |
| 22.1 | 22.1 |
| **22.10** | **22.2** |
| 22.2 | 22.3 |
| 22.3 | 22.4 |
| 22.4 | 22.5 |
| 22.5 | 22.6 |
| 22.6 | 22.7 |
| 22.7 | 22.8 |
| 22.8 | 22.9 |
| **22.9** | **22.10** |
2022-02-03 19:58:39 +08:00
Peter Dave Hello f62de3fcb1 Clean up temp Dockerfile in update.sh before fatal exit 2022-02-01 21:56:47 +08:00
Mason Malone 8261a0234e fix: Better error handling in update.sh
This makes a couple tweaks to the error handling in update.sh:

1. If one of the background jobs exits with a non-zero exit status, the
script will no longer exit with status 0. Closes #1269
2. For Alpine, immediately exit if checksum is zero length to avoid
corrupting a Dockerfile.
2021-10-12 19:43:53 -07:00
Travis Shivers ee169b2fdd
ci: use single dynamic build-test action
Add a GitHub action that dynamically generates the matrix of Dockerfiles
to test based on what files have changed. This avoids having to have
generated workflows for each version x variant combo.

It looks for any changed Dockerfiles, or docker-entrypoint.sh. If any of
the testing files are changed, it will test all Dockerfiles
2020-10-12 18:07:00 -05:00
Travis Shivers 3d290f8d6d
fix: use python3 or python2 for alpine
In alpine3.12, they removed the python package in favor of either
python2 or python3.
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.12.0#python2_no_longer_provides_python_and_python-devel

However, nodejs 12, 10 require python2 for building from source. I added
a change in update.sh that swaps out python3 for python2 in those older
versions for alpine Dockerfiles.

Refs #1330
2020-09-22 18:50:21 -05:00
Nick Schonning 42a70beebd chore: Generate Docker file GitHub Actions 2020-08-15 00:47:53 -04:00
Laurent Goderre 3dbeefaa1b
Revert "Fix update.sh invocation with unknown variant" 2020-01-10 09:41:24 -05:00
Peter Dave Hello e088f69dce
Merge pull request #1161 from LaurentGoderre/improve-updatesh
Fix update.sh invocation with unknown variant

Co-authored-by: Tommi Vainikainen <thv@iki.fi>
2020-01-09 12:28:28 +08:00
Nick Schonning b7a069e833 chore: Remove OnBuild variant 2019-12-31 19:08:52 -05:00
Tommi Vainikainen 6c3fa2f322 Fix update.sh invocation with unknown variant
If update.sh was invoked with non-existing variant, it updated all
variants.  Change in_variants_to_update to return true always if
second variant argument was not given, but not when given variant
argument does not match to available variants.
2019-11-22 19:04:21 +00:00
Tommi Vainikainen b93f9ebdcf Fix update.sh example with slim
Invoking update.sh with `slim` variant did not work, because slim
variants are always tied to Debian version (e.g. stretch, buster).
2019-11-22 18:47:58 +00:00
Laurent Goderre c6bc44e84a Added multiple versions of alpine 2019-11-12 07:27:42 -05:00
Laurent Goderre 93c5e09856 Fetch the checksum for the pre-built alpine binary at image update time. 2019-10-28 09:15:17 -04:00
Laurent Goderre 7e47b378c4 Added an entrypoint script
Fixes #1039
2019-05-26 19:53:24 -04:00
Peter Dave Hello 95bf09c7fd Add prompt msg about Dockerfile updated in update.sh 2018-12-19 03:06:27 +08:00
Laurent Goderre dec48312c8 Fixed the Travis Env Var error message
Fixes #920
2018-12-06 08:21:37 -05:00
Laurent Goderre 8c0a9f2c14 Multiple slim (#850) 2018-11-29 15:20:12 +01:00
Tianon Gravi 77c2d0850a Revert "Enable ccache for Alpine builds on Travis CI" and "Fix Alpine build with the missing `|| true`"
This reverts commits 2893221564 and 7e5b3f07e6.
2018-11-22 10:11:01 -08:00
Peter Dave Hello 7e5b3f07e6 Enable ccache for Alpine builds on Travis CI 2018-11-21 19:25:00 +08:00
Peter Dave Hello fe5a0629ef Add update.sh -t option to update .travis.yml only
Close #909
2018-11-19 20:44:18 +08:00
Peter Dave Hello b5714d0354 Fix help message indentation in update.sh 2018-11-15 19:18:33 +08:00
Peter Dave Hello 4d188a01fe Auto skip unnecessary builds 2018-11-06 17:12:24 +08:00
Peter Dave Hello dde42059bf Update .travis.yml auto-generated comment format 2018-08-13 20:47:36 +08:00
Peter Dave Hello 26550a63bc Add a space after redirect ops in shell script 2018-07-17 00:25:28 +08:00
Nick Schonning b22fb6c84e build: Drop Node 9 (#803)
Support for 9 dropped yesterday bc9d936e15/schedule.json (L44)
2018-07-01 18:49:04 +02:00
Laurent Goderre 26f21a886d Added ability to update specific variant for all versions 2018-06-26 08:11:56 -04:00
Laurent Goderre 1c4ff5c5f4 Added ability to update multiple versions of variants 2018-06-26 08:11:56 -04:00
Laurent Goderre 59cb6a317e Fixed the update script not working properly with the -s flag or variant filter 2018-06-20 15:19:21 -04:00
Laurent Goderre 1458f3e0bf Fixed the gpg key substituion 2018-06-20 13:01:21 -04:00
Christopher Horrell d50660f9b4 Add option to skip updating yarn and alpine when doing a security update 2018-06-18 13:05:48 -04:00
Laurent Goderre b9dc6bbbaa Fixed new shfmt issue 2018-06-18 11:50:10 -04:00
Laurent Goderre f76ebfb936 Fixed the update not outputing the version numbers on update 2018-05-28 11:20:43 -04:00
Laurent Goderre 11a62b6154 Fixed the onbuild versions
Explicitly define the debian version to use for onbuild
2018-05-27 22:35:32 -04:00
Laurent Goderre 7fea7b033c Don't use a default variant
tenp
2018-05-27 22:35:28 -04:00
Peter Dave Hello 9e004a0bfd
Merge pull request #757 from LaurentGoderre/fix-update-macosx
Fix the update script for macOS
2018-05-25 02:28:20 +08:00
Laurent Goderre 46b4159599 Fixed the update script for mac OS 2018-05-24 13:12:25 -04:00
Laurent Goderre fb8ac15c9c More code style fixes (again) 2018-05-24 02:19:54 -04:00
Laurent Goderre 9bd00c484c Simplify the management of alpine version
Standardizes the alpine version to use and helps upgrade the alpine version only on version update
2018-05-21 07:07:42 -04:00
Laurent Goderre 64629c613b More coding style fixes 2018-05-18 15:50:09 -04:00
Christopher Horrell 7b0a6177ea
Merge pull request #738 from LaurentGoderre/fix-update
Fix the update script for only a specific version
2018-05-18 13:21:04 -04:00
Peter Dave Hello bb92568f3a Improve coding style of shell scripts 2018-05-18 03:03:10 +08:00
Laurent Goderre eb8000cd22 Fix the update script for only a specific version
Fixes #737
2018-05-17 14:57:33 -04:00
Peter Dave Hello 54b51b3ab1 Adjust .travis.yml generation process to prevent trailing new line 2018-05-16 01:36:07 +08:00
Laurent Goderre 1cf5b83919 Fixed the update script 2018-05-15 11:08:17 -04:00
Peter Dave Hello bbf199c459 Fix format issues 2018-05-15 20:05:37 +08:00
Peter Dave Hello f384c2b6f1 Format shell scripts with shfmt -i 2 -ci -l -w -f 2018-05-14 19:29:13 +08:00