Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
0405ysj committed Aug 12, 2024
1 parent 32a71aa commit 2d2d902
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/reusable-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,45 @@ jobs:
with:
name: cuttlefish_packages_arm64
path: tools/cuttlefish-host-image-installer/cuttlefish_packages.7z
build-arm64-docker-image-job:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
- name: Prepare building environment
run: sudo apt update && sudo apt-get install -y ubuntu-dev-tools qemu-user-static binfmt-support fakeroot equivs
- name: Pbuilder arm64 create
run: pbuilder-dist stable arm64 create
- name: Pbuilder arm64 update
run: pbuilder-dist stable arm64 update
- name: Building docker image
run: |
cd docker/orchestration
./build.sh
docker save --output docker_image_arm64.tar cuttlefish-orchestration
- name: Publish docker image
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0
with:
name: docker_image_arm64
path: docker/orchestration/docker_image_arm64.tar
build-x86_64-docker-image-job:
runs-on: ubuntu-latest
container:
image: debian@sha256:3b6053ca925336c804e2d3f080af177efcdc9f51198a627569bfc7c7e730ef7e
steps:
- name: Checkout repository
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
- name: Setup apt
run: apt update -y && apt upgrade -y
- name: Install dependencies
run: apt install -y docker.io
- name: Building docker image
run: |
cd docker/orchestration
./build.sh
docker save --output docker_image_x86_64.tar cuttlefish-orchestration
- name: Publish docker image
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0
with:
name: docker_image_x86_64
path: docker/orchestration/docker_image_x86_64.tar
2 changes: 2 additions & 0 deletions docker/orchestration/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# Docker image includes HO(Host Orchestrator) inside,
# so it could execute CF instance with API in HO.

set -e

# Build debian packages(e.g. cuttlefish-base) with docker.
pushd ../debs-builder-docker
./main.sh
Expand Down

0 comments on commit 2d2d902

Please sign in to comment.