Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dart_sdk_build_raspberry_pi_dockerfile/.circleci/config.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (31 sloc)
1.07 KB
This file contains 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: debian:stretch | |
environment: | |
DOCKER_REPO: "luongbui/dart-vm_armv6" | |
TAG: "2.0.0-dev.55.0" | |
steps: | |
- run: | |
name: Install Docker | |
command: | | |
apt-get update | |
apt-get -y install apt-transport-https dirmngr | |
echo 'deb https://apt.dockerproject.org/repo debian-stretch main' >> /etc/apt/sources.list | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys F76221572C52609D | |
apt-get update | |
apt-get -y install docker-engine | |
- checkout | |
- setup_remote_docker | |
- run: | |
name: Build Docker image with dart-vm binary | |
command: | | |
docker build --build-arg dart_version=$TAG --tag $DOCKER_REPO:$TAG . | |
docker login -u $DOCKER_USER -p $DOCKER_PASS | |
docker push $DOCKER_REPO:$TAG | |
- run: | |
name: Upload Docker image to Hub | |
command: | | |
docker login -u $DOCKER_USER -p $DOCKER_PASS | |
docker push $DOCKER_REPO:$TAG |