Skip to content

Commit

Permalink
Fix circleci scripts (lynckia#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored and zevarito committed Jul 4, 2018
1 parent 5ca71eb commit 4b4fe08
Showing 1 changed file with 6 additions and 54 deletions.
60 changes: 6 additions & 54 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,15 @@ version: 2.0
jobs:
build:
docker:
- image: buildpack-deps:trusty-curl
- image: circleci/buildpack-deps:trusty-curl-browsers

working_directory: /tmp/licode

steps:
- run:
name: Install Git client
command: |
set -x
sudo apt-get update
sudo apt-get install -y git
- checkout

- setup_remote_docker

- run:
name: Install Docker client
command: |
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
- run:
name: Pull latest docker image
command: |
Expand Down Expand Up @@ -65,7 +49,7 @@ jobs:
- deploy:
name: Push Licode Docker image
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
if [ "${CIRCLE_BRANCH}" == "master" ] && [ "${CIRCLE_PROJECT_USERNAME}" == "lynckia" ]; then
SHORT_GIT_HASH="$(echo ${CIRCLE_SHA1} | cut -c -7)"
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
echo Tagging to lynckia/licode:${SHORT_GIT_HASH}
Expand All @@ -76,36 +60,20 @@ jobs:
prerelease:
docker:
- image: buildpack-deps:trusty-curl
- image: circleci/buildpack-deps:trusty-curl-browsers

working_directory: /tmp/licode

steps:
- run:
name: Install Git client
command: |
set -x
sudo apt-get update
sudo apt-get install -y git
- checkout

- setup_remote_docker

- run:
name: Install Docker client
command: |
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
- run:
name: Install deps
command: |
sudo apt-get update
sudo apt-get install -y git jq
sudo apt-get install -y jq
- run:
name: Create Prerelease
Expand All @@ -114,36 +82,20 @@ jobs:
release:
docker:
- image: buildpack-deps:trusty-curl
- image: circleci/buildpack-deps:trusty-curl-browsers

working_directory: /tmp/licode

steps:
- run:
name: Install Git client
command: |
set -x
sudo apt-get update
sudo apt-get install -y git
- checkout

- setup_remote_docker

- run:
name: Install Docker client
command: |
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
- run:
name: Install deps
command: |
sudo apt-get update
sudo apt-get install -y git jq
sudo apt-get install -y jq
- run:
name: Create release
Expand Down

0 comments on commit 4b4fe08

Please sign in to comment.