chore: Test timestamp fix in CI
This commit is contained in:
parent
8dbd88ef03
commit
b77041c3b9
2 changed files with 10 additions and 1 deletions
|
@ -28,6 +28,7 @@ prebuild:
|
||||||
- _build/
|
- _build/
|
||||||
- deps/
|
- deps/
|
||||||
script:
|
script:
|
||||||
|
- script/ci-set-timestamps
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
- mix local.rebar --force
|
- mix local.rebar --force
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
|
@ -79,7 +80,9 @@ test:
|
||||||
paths:
|
paths:
|
||||||
- _build/
|
- _build/
|
||||||
- deps/
|
- deps/
|
||||||
script: script/cibuild
|
script:
|
||||||
|
- script/ci-set-timestamps
|
||||||
|
- script/cibuild
|
||||||
|
|
||||||
build_image_for_commit:
|
build_image_for_commit:
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -99,6 +102,7 @@ build_image_for_commit:
|
||||||
- _build/
|
- _build/
|
||||||
- deps/
|
- deps/
|
||||||
script:
|
script:
|
||||||
|
- script/ci-set-timestamps
|
||||||
- ls -la _build
|
- ls -la _build
|
||||||
- docker login "https://${CI_REGISTRY}" -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
|
- docker login "https://${CI_REGISTRY}" -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
|
||||||
- docker pull $CI_REGISTRY_IMAGE:latest || true
|
- docker pull $CI_REGISTRY_IMAGE:latest || true
|
||||||
|
|
5
script/ci-set-timestamps
Executable file
5
script/ci-set-timestamps
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
BUILD_TIMESTAMP=`date -d $CI_COMMIT_TIMESTAMP "CCYYMMDDhhmm.SS"`
|
||||||
|
|
||||||
|
touch -t $BUILD_TIMESTAMP apps/**/*.ex apps/**/*.exs config/**/*.ex config/**/*.exs mix.exs
|
Loading…
Reference in a new issue