-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mises à jour techniques (Elixir, Erlang, NVM, NodeJS) #33
Changes from all commits
117183b
830d8bd
5ceae4b
d23f139
2d1d420
dafb0ef
def8cec
2b9beb0
56af84d
98f9943
792355e
ceebdc7
fbc2bdb
e4b4be9
23c49d6
ffaaa0c
2a2c7c8
f6bc86f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,9 @@ env: | |
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
TEST_TAG: ${{ github.repository }}:test | ||
TEST_EXPECTED_NODE_OUTPUT: "v14.16.1" | ||
TEST_EXPECTED_ELIXIR_OUTPUT: "Elixir 1.12.2 (compiled with Erlang/OTP 24)" | ||
TEST_EXPECTED_ERLANG_OUTPUT: "Erlang/OTP 24" | ||
TEST_EXPECTED_NODE_OUTPUT: "v16.14.0" | ||
TEST_EXPECTED_ELIXIR_OUTPUT: "Elixir 1.13.2 (compiled with Erlang/OTP 24)" | ||
TEST_EXPECTED_ERLANG_OUTPUT: "24.2.1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attention on fait un "gros saut" sur OTP, il faudra être vigilant (aspects HTTP etc). |
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
|
@@ -66,8 +66,8 @@ jobs: | |
- name: Test that Elixir can start and has expected version | ||
run: docker run --rm ${{ env.TEST_TAG }} /bin/bash -c 'elixir --version' | grep '${{ env.TEST_EXPECTED_ELIXIR_OUTPUT }}' | ||
|
||
- name: Test that Erlang can start and has (major) expected version | ||
run: docker run --rm ${{ env.TEST_TAG }} /bin/bash -c "erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()'" | grep '${{ env.TEST_EXPECTED_ERLANG_OUTPUT }}' | ||
- name: Test that Erlang can start and has expected version (major + minor + optional revision number) | ||
run: docker run --rm ${{ env.TEST_TAG }} /bin/bash -c "erl -eval '{ok, Version} = file:read_file(filename:join([code:root_dir(), \"releases\", erlang:system_info(otp_release), \"OTP_VERSION\"])), io:fwrite(Version), halt().' -noshell" | grep '${{ env.TEST_EXPECTED_ERLANG_OUTPUT }}' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Le test ci-dessus est amélioré et vérifie la totalité de la version ( |
||
|
||
# If we reach this point, we consider the tested imaged is OK, so we can extract the metadat & publish | ||
# https://github.com/docker/metadata-action | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
task :get_image_version do | ||
version = IO.read("transport-site/Dockerfile")[/FROM (hexpm\/elixir.*)/, 1] | ||
version = version.gsub('hexpm/elixir:','elixir-') | ||
fail "Unexpected FROM format, script must be verified" unless version =~ /\Aelixir\-[^\-]+\-erlang\-[^\-]+\-alpine\-[^\-]+\z/ | ||
fail "Unexpected FROM value (got #{version}), script must be adapted?" unless version =~ /\Aelixir\-[^\-]+\-erlang\-[^\-]+\-ubuntu\-focal\-[^\-]+\z/ | ||
puts version | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il faudra vérifier la compatibilité du côté site.