Skip to content

Commit

Permalink
leofs: Add/Modify files related to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
mocchira committed Aug 9, 2018
1 parent 69d0252 commit fd3551f
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
81 changes: 81 additions & 0 deletions .circleci/config.yml
Expand Up @@ -100,6 +100,51 @@ jobs:
- checkout
- run: cd Dockerfiles && docker-compose up --abort-on-container-exit

release-base:
docker:
- image: leoproject/leofs-release:latest
environment:
GITHUB_USER: $GITHUB_USER
GITHUB_PASSWORD: $GITHUB_PASSWORD
command: git pull origin; hub release create -d -m "TBD" $CIRCLE_TAG

package-centos6:
docker:
- image: leoproject/leofs-package-centos6:latest
environment:
GITHUB_USER: $GITHUB_USER
GITHUB_PASSWORD: $GITHUB_PASSWORD
command: ./run_packaging.sh $CIRCLE_TAG

package-centos7:
machine: true
working_directory: ~/leofs
steps:
- checkout
- run: ./Dockerfiles/leofs-package-centos7/run_container_for_packaging.sh $GITHUB_USER $GITHUB_PASSWORD $CIRCLE_TAG

package-ubuntu14.04:
docker:
- image: leoproject/leofs-package-ubuntu14.04:latest
environment:
GITHUB_USER: $GITHUB_USER
GITHUB_PASSWORD: $GITHUB_PASSWORD
command: ./run_packaging.sh $CIRCLE_TAG

package-ubuntu16.04:
machine: true
working_directory: ~/leofs
steps:
- checkout
- run: ./Dockerfiles/leofs-package-ubuntu16.04/run_container_for_packaging.sh $GITHUB_USER $GITHUB_PASSWORD $CIRCLE_TAG

package-ubuntu18.04:
machine: true
working_directory: ~/leofs
steps:
- checkout
- run: ./Dockerfiles/leofs-package-ubuntu18.04/run_container_for_packaging.sh $GITHUB_USER $GITHUB_PASSWORD $CIRCLE_TAG

workflows:
version: 2
run_integration_tests:
Expand All @@ -120,3 +165,39 @@ workflows:
- run-leofs-nfs-test:
requires:
- leofs-nfs-test
release_packages:
jobs:
- release-base:
filters:
tags:
only: /.*/
- package-centos6:
requires:
- release-base
filters:
tags:
only: /.*/
- package-centos7:
requires:
- release-base
filters:
tags:
only: /.*/
- package-ubuntu14.04:
requires:
- release-base
filters:
tags:
only: /.*/
- package-ubuntu16.04:
requires:
- release-base
filters:
tags:
only: /.*/
- package-ubuntu18.04:
requires:
- release-base
filters:
tags:
only: /.*/
13 changes: 13 additions & 0 deletions Dockerfiles/leofs-release/Dockerfile
@@ -0,0 +1,13 @@
FROM ubuntu:18.04

RUN set -xe \
&& apt-get update \
&& apt-get -y install git wget \
&& wget https://github.com/github/hub/releases/download/v2.5.0/hub-linux-amd64-2.5.0.tgz \
&& tar xzf hub-linux-amd64-2.5.0.tgz \
&& ./hub-linux-amd64-2.5.0/install \
&& git clone https://github.com/leo-project/leofs.git

WORKDIR /leofs

CMD bash

0 comments on commit fd3551f

Please sign in to comment.