Commit 9f0f838b authored by Torstein Leversund's avatar Torstein Leversund
Browse files

docker image for building packages with fpm cookery

parent c6f8fcbe
Pipeline #3712 failed with stages
in 12 seconds
image: docker:stable
stages:
- build
- test
- release
variables:
TEST_IMAGE: git.app.uib.no:4567/itpublic/dockerimages/centosfpmcookery:$CI_COMMIT_REF_NAME
RELEASE_IMAGE: git.app.uib.no:4567/itpublic/dockerimages/centosfpmcookery:latest
before_script:
- echo -n $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY
build:
stage: build
script:
- docker build --pull -t $TEST_IMAGE .
- docker push $TEST_IMAGE
test:
stage: test
script:
- docker pull $TEST_IMAGE
release:
stage: release
script:
- docker pull $TEST_IMAGE
- docker tag $TEST_IMAGE $RELEASE_IMAGE
- docker push $RELEASE_IMAGE
only:
- master
FROM centos:7
RUN yum -y update \
&& curl -sL https://rpm.nodesource.com/setup_10.x | bash - \
&& yum -y install nodejs install epel-release openssl rpm-build rsync which ruby-devel gcc gcc-c++ make \
&& yum -y install rubygems rake openssh-clients wget \
&& gem install -N fpm-cookery \
&& yum -y update
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment