Experimenting with concourse build
This commit is contained in:
1
concourse/.gitignore
vendored
Normal file
1
concourse/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
credentials.yml
|
||||
13
concourse/docker/Dockerfile
Normal file
13
concourse/docker/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM ubuntu:16.04
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
git \
|
||||
openjdk-8-jdk \
|
||||
maven \
|
||||
curl
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \
|
||||
&& apt-get install -y nodejs
|
||||
|
||||
CMD /bin/bash
|
||||
48
concourse/pipeline.yml
Normal file
48
concourse/pipeline.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
resources:
|
||||
- name: docker-git
|
||||
type: git
|
||||
source:
|
||||
uri: git@github.com:spring-projects/sts4.git
|
||||
branch: concourse
|
||||
username: kdvolder
|
||||
private_key: {{rsa_id}}
|
||||
paths:
|
||||
- concourse/docker/**/*
|
||||
- name: sts4-git
|
||||
type: git
|
||||
source:
|
||||
uri: git@github.com:spring-projects/sts4.git
|
||||
branch: concourse
|
||||
private_key: {{rsa_id}}
|
||||
- name: docker-image
|
||||
type: docker-image
|
||||
source:
|
||||
username: {{docker_hub_username}}
|
||||
email: {{docker_hub_email}}
|
||||
password: {{docker_hub_password}}
|
||||
repository: kdvolder/sts4-build-env
|
||||
jobs:
|
||||
- name: build-docker-image
|
||||
serial: true
|
||||
plan:
|
||||
- get: docker-git
|
||||
trigger: true
|
||||
- put: docker-image
|
||||
build: docker-git/concourse/docker
|
||||
|
||||
- name: build-vsix
|
||||
plan:
|
||||
- get: sts4-git
|
||||
trigger: true
|
||||
- get: docker-image
|
||||
trigger: true
|
||||
- task: build-vscode-extensions
|
||||
config:
|
||||
inputs:
|
||||
- name: sts4-git
|
||||
- name: docker-image
|
||||
platform: linux
|
||||
image: docker-image
|
||||
run:
|
||||
path: "./build-all.sh"
|
||||
dir: "sts4-git/vscode-extensions"
|
||||
2
concourse/set-pipeline.sh
Executable file
2
concourse/set-pipeline.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
fly -t tools set-pipeline --load-vars-from credentials.yml -p sts4 -c pipeline.yml
|
||||
Reference in New Issue
Block a user