Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Yuanmao Zhu <[email protected]>
  • Loading branch information
zhuyuanmao committed Feb 6, 2023
1 parent 355cabb commit 0828679
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 108 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@ name: Cello CI

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build images
run: |
docker build . --file "build_image/docker/common/api-engine/Dockerfile.in" --tag hyperledger/cello-api-engine:$(date +%s)
docker build . --file "build_image/docker/common/nginx/Dockerfile.in" --tag hyperledger/cello-nginx:$(date +%s)
docker build . --file "build_image/docker/common/dashboard/Dockerfile.in" --tag hyperledger/cello-dashboard:$(date +%s)
docker build . --file "build_image/docker/agent/ansible/Dockerfile.in" --tag hyperledger/cello-ansible-agent:$(date +%s)
- uses: actions/checkout@v3
- name: Build images
run: |
docker build . --file "build_image/docker/common/api-engine/Dockerfile.in" --tag hyperledger/cello-api-engine:$(date +%s)
docker build . --file "build_image/docker/common/nginx/Dockerfile.in" --tag hyperledger/cello-nginx:$(date +%s)
docker build . --file "build_image/docker/common/dashboard/Dockerfile.in" --tag hyperledger/cello-dashboard:$(date +%s)
60 changes: 30 additions & 30 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,44 @@
# https://aka.ms/yaml

trigger:
- main
- main

pool:
vmImage: 'ubuntu-18.04'
vmImage: "ubuntu-18.04"

variables:
- group: credentials

stages:
- stage: PreCheck
displayName: Check license and documents
jobs:
- job: CheckLicenseAndDocs
condition: false
steps:
- template: ci/check-license-and-docs.yml
- stage: PreCheck
displayName: Check license and documents
jobs:
- job: CheckLicenseAndDocs
condition: false
steps:
- template: ci/check-license-and-docs.yml

- stage: ProcessComponents
displayName: ProcessComponents
condition: false
jobs:
- template: ci/process-components.yml
parameters:
param:
- name: dashandapi
pretest: "dashandapi_pre.yml"
posttest: "dashandapi_post.yml"
images:
- imagename: "hyperledger/cello-api-engine"
dockerfile: "build_image/docker/common/api-engine/Dockerfile.in"
- imagename: "hyperledger/cello-nginx"
dockerfile: "build_image/docker/common/nginx/Dockerfile.in"
- imagename: "hyperledger/cello-dashboard"
dockerfile: "build_image/docker/common/dashboard/Dockerfile.in"
- name: ansibleagent
images:
- imagename: "hyperledger/cello-ansible-agent"
dockerfile: "build_image/docker/agent/ansible/Dockerfile.in"
- stage: ProcessComponents
displayName: ProcessComponents
condition: false
jobs:
- template: ci/process-components.yml
parameters:
param:
- name: dashandapi
pretest: "dashandapi_pre.yml"
posttest: "dashandapi_post.yml"
images:
- imagename: "hyperledger/cello-api-engine"
dockerfile: "build_image/docker/common/api-engine/Dockerfile.in"
- imagename: "hyperledger/cello-nginx"
dockerfile: "build_image/docker/common/nginx/Dockerfile.in"
- imagename: "hyperledger/cello-dashboard"
dockerfile: "build_image/docker/common/dashboard/Dockerfile.in"
# - name: ansibleagent
# images:
# - imagename: "hyperledger/cello-ansible-agent"
# dockerfile: "build_image/docker/agent/ansible/Dockerfile.in"
# - name: fabricoperator
# images:
# - imagename: "hyperledger/cello-k8s-operator-agent"
Expand Down
17 changes: 0 additions & 17 deletions build_image/docker/agent/fabric-operator/Dockerfile.in

This file was deleted.

45 changes: 0 additions & 45 deletions build_image/dockerhub/latest/agent/ansible/Dockerfile

This file was deleted.

6 changes: 1 addition & 5 deletions ci/check-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ steps:
echo Checking changes in ${{ parameters.componentName }}
dashandapi=("src/api-engine/" "src/dashboard/"
"build_image/docker/common/")
ansibleagent=("src/agent/ansible/"
"build_image/docker/agent/ansible")
fabricoperator=("src/agent/fabric-operator/"
"build_image/docker/fabric-operator/")
allchanges=$(git diff --name-only HEAD HEAD~1)
echo 'changed files in the pull request'
Expand Down Expand Up @@ -40,4 +36,4 @@ steps:
echo 'No changes found for the component'
echo "##vso[task.setvariable variable=ContinueJob]False"
fi
displayName: 'Check changes'
displayName: "Check changes"

0 comments on commit 0828679

Please sign in to comment.