diff --git a/.gitlab-ci-template.yml b/.gitlab-ci-template.yml deleted file mode 100644 index 4a635627ee27c61f1d666d8c63772602109cc6aa..0000000000000000000000000000000000000000 --- a/.gitlab-ci-template.yml +++ /dev/null @@ -1,4 +0,0 @@ -latest: - stage: test - script: - - echo 'test!' diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 181ca2eeee08ac1988f11854cc96fa50a15a1fd9..7627ec002e0cce8d76f4c498fb904d9d5708ec63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,71 +1,4 @@ -include: - - local: '.gitlab-ci-template.yml' - -.image-stable: - cache: - - key: image-stable - paths: - - smash.text - - -.image-latest: - cache: - - key: image-latest - paths: - - cache.text - - -build: - stage: build - variables: - A: (x y z) - B[0]: a - B[1]: b - B[2]: c - script: - - set -ex - - echo "$A" || :; - - echo "${A[@]}" || :; - - echo "${#A[@]}" || :; - - echo "${!A[@]}" || :; - - echo "$B" || :; - - echo "${B[@]}" || :; - - echo "${#B[@]}" || :; - - echo "${!B[@]}" || :; - - echo "STAMP=$RANDOM" | tee .env - - cat .env > cache.text - - cat .env > smash.text - cache: - - !reference [.image-stable, cache] - - !reference [.image-latest, cache] - artifacts: - expire_in: 1 min - paths: - - ./.env - - -latest: - stage: test - before_script: - - echo 'TEST?' - after_script: - - echo 'TEST.' - test: stage: test script: - - . .env - - echo "$STAMP" - - cat cache.text - - cat smash.text - - for m in `seq 1 30`; do echo $m; sleep 30; done - cache: - - !reference [.image-stable, cache] - - !reference [.image-latest, cache] - - -deploy: - stage: deploy - script: - - . .env - - echo "$STAMP" + - env