Skip to content

Commit

Permalink
Testing files
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya-563 committed Sep 8, 2023
1 parent 865349d commit 90341cb
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 8 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM ubuntu:22.04

RUN apt-get install build-essential git subversion cvs unzip whois ncurses-dev bc mercurial pmount gcc-multilib g++-multilib libgmp3-dev libmpc-dev liblz4-tool
COPY buildroot /buildroot
WORKDIR /buildroot
#RUN make raspberrypi3_wpe_ml_defconfig && make
RUN apt-get update
RUN apt-get install build-essential git subversion cvs unzip whois ncurses-dev bc mercurial pmount gcc-multilib g++-multilib libgmp3-dev libmpc-dev liblz4-tool
COPY build.sh /usr/local/bin
ENTRYPOINT ["./build.sh"]
#RUN make raspberrypi3_wpe_ml_defconfig && make
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

make raspberrypi3_wpe_defconfig && make
~
26 changes: 20 additions & 6 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
icon: github
source:
uri: https://github.com/WebPlatformForEmbedded/buildroot/
branch: Divya-test
password: ((github-enterprise.access-token))

- name: buildroot-docker-image
Expand All @@ -20,11 +21,24 @@ jobs:
- name: Divya-Buildroot
plan:
- get: Divya-Buildroot
- task: prepare-build
file: Divya-Buildroot/buildroot/ci/prepare-build.yml
- task: build
file: Divya-Buildroot/buildroot/ci/build.yml
- task: prepare-and-build
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
repository: ubuntu
inputs:
- name: Divya-Buildroot
path: .
outputs:
- name: image
params:
CONTEXT: Divya-Buildroot
dockerfile: ./buildroot/Dockerfile
run: # binary used to build the image
path: ls
- put: buildroot-docker-image
params:
image: image/image.tar
params: {image: image/image.tar}

30 changes: 30 additions & 0 deletions ci/pipeline.yml-bkp
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: Divya-Buildroot/ci/prepare-build.yml
- task: build
file: Divya-Buildroot/ci/build.yml
- put: buildroot-docker-image
params:
image: image/image.tar

0 comments on commit 90341cb

Please sign in to comment.