From 90341cbcbd241d9ce92e020221d6b8e3460000ec Mon Sep 17 00:00:00 2001 From: Divya-563 <47666047+Divya-563@users.noreply.github.com> Date: Fri, 8 Sep 2023 12:32:10 +0200 Subject: [PATCH] Testing files --- Dockerfile | 7 +++++-- build.sh | 4 ++++ ci/pipeline.yml | 26 ++++++++++++++++++++------ ci/pipeline.yml-bkp | 30 ++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+), 8 deletions(-) create mode 100755 build.sh create mode 100644 ci/pipeline.yml-bkp diff --git a/Dockerfile b/Dockerfile index c2d5564f3be0..c1b86fe70fe6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/build.sh b/build.sh new file mode 100755 index 000000000000..71df1a60561b --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +make raspberrypi3_wpe_defconfig && make +~ diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 6086d8efbe73..51d4c6692690 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -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 @@ -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} diff --git a/ci/pipeline.yml-bkp b/ci/pipeline.yml-bkp new file mode 100644 index 000000000000..2f96786aad4b --- /dev/null +++ b/ci/pipeline.yml-bkp @@ -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 +