Created
June 16, 2017 06:11
-
-
Save hatappi/7f8d3b7aa70e6faba12a4eda251447ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: ruby:2.4.1 | |
working_directory: ~/circleci-2.0 | |
steps: | |
- checkout | |
- run: ruby -v | |
deploy: | |
machine: true | |
working_directory: ~/circleci-2.0 | |
steps: | |
- checkout | |
- run: docker --version | |
- run: go version | |
- run: | |
name: Install Packer | |
command: | | |
set -xe | |
sudo apt-get install -y unzip | |
curl -L -o packer.zip https://releases.hashicorp.com/packer/1.0.0/packer_1.0.0_linux_amd64.zip | |
unzip packer.zip | |
rm packer.zip | |
sudo mv packer /usr/local/bin | |
packer version | |
- run: | |
name: Build images | |
command: | | |
set -xe | |
packer build sample.json | |
workflows: | |
version: 2 | |
test_and_deploy: | |
jobs: | |
- build | |
- deploy: | |
requires: | |
- build | |
filters: | |
branches: | |
only: master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment