Skip to content
Snippets Groups Projects

Draft: Gitlab ci image build

Open Johannes Frenzel requested to merge gitlab-ci-image-build into develop
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
+ 6
1
@@ -18,12 +18,17 @@ variables:
POSTGRES_PASSWORD: 'password'
POSTGRES_HOST_AUTH_METHOD: trust
RAILS_ENV: test
build-job:
stage: build
before_script:
- apk update && apk upgrade && apk add nodejs curl libarchive-tools build-base libpq-dev sqlite-dev libxml2-dev tzdata
- cd hyrax && bundle install --jobs 4 --retry 3
- sh ./hyrax/deploy_info.sh
- DOCKER_IMAGE_TAG = "${CI_COMMIT_REF_SLUG}_$(git describe --all --always --long --tags | sed -e 's|^heads/||' -e 's|/|_|g')_$(jq -r '.last_deployed' < hyrax/deploy_info.json | sed 's|\+00:00$|UTC|g;s|:|-|g')"
- export $DOCKER_IMAGE_TAG
- echo $DOCKER_IMAGE_TAG
script:
- mkdir -p /fits/fits-1.5.5
- curl --fail --location "https://github.com/harvard-lts/fits/releases/download/1.5.5/fits-1.5.5.zip" | bsdtar --extract --directory /fits/fits-1.5.5
Loading