Skip to content

Commit

Permalink
updated for concourse
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya-563 committed Aug 27, 2023
1 parent 9d2af6c commit 60c2b2c
Show file tree
Hide file tree
Showing 8 changed files with 4,186 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ci/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
platform: linux

image_resource:
type: registry-image
source:
repository: concourse/oci-build-task

inputs:
- name: prebuild-output

outputs:
- name: image

caches:
- path: image-cache

run: {path: build}
30 changes: 30 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
resources:
- name: Divya-Buildroot
type: git
icon: github
source:
uri: https://github.com/WebPlatformForEmbedded/buildroot/
password: ((github-enterprise.access-token))

- name: buildroot-docker-image
type: registry-image-resource
check_every: 72h
source:
repository: atlas.comcast.net/tpx-metrological-embedded
username: ((service-account.username))
password: ((service-account.password))


jobs:

- name: Divya-Buildroot
plan:
- get: Divya-Buildroot
- task: prepare-build
file: buildroot/ci/prepare-build.yml
- task: build
file: buildroot/ci/build.yml
- put: buildroot-docker-image
params:
image: image/image.tar

5 changes: 5 additions & 0 deletions ci/prepare-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

cd ..
make raspberrypi3_wpe_defconfig && make
~
17 changes: 17 additions & 0 deletions ci/prepare-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
platform: linux

image_resource:
type: registry-image
source:
repository: ubuntu
tag: "bionic"

inputs:
- name: Divya-Buildroot

outputs:
- name: prebuild-output

run:
path: ./ci/prepare_build.sh
dir: .
22 changes: 22 additions & 0 deletions ci/tasks/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


platform: linux

image_resource:
type: registry-image
source:
repository: python
tag: 3.7.3

inputs:
- name: buildroot

outputs:
- name: Div-build

params:
BUILD_OUTPUT_DIR: ../build

run:
dir: buildroot
path: make
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/node

const greeter = require('./src/greeter')

console.log(greeter.greet(process.argv[2]))
Loading

0 comments on commit 60c2b2c

Please sign in to comment.