Release x86_64 & arm64 docker images built by bazel system #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ReusableBuild | |
on: [workflow_call] | |
jobs: | |
build-arm64-cuttlefish-deb-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 package | |
run: cd tools/cuttlefish-host-image-installer && ./build_cf_packages.sh | |
- name: Create artifact | |
run: cd tools/cuttlefish-host-image-installer && cp -f cuttlefish-common-buildplace/*.deb . && 7z a -mx=9 cuttlefish_packages.7z *.deb | |
- name: Publish cuttlefish_packages.7z | |
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0 | |
with: | |
name: cuttlefish_packages_arm64 | |
path: tools/cuttlefish-host-image-installer/cuttlefish_packages.7z | |
build-x86_64-docker-image-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2 | |
- name: Install bazel | |
run: sudo bash tools/buildutils/installbazel.sh | |
- name: bazel version | |
run: bazel version | |
- name: BUILDX_CONFIG | |
value: /tmp/buildx | |
- name: Building docker image | |
run: | | |
cd e2etests | |
bazel build @images//docker:orchestration_image_tar | |
- name: Publish docker image | |
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0 | |
with: | |
name: docker_image_x86_64 | |
path: bazel-bin/external/images/docker/orchestration-image.tar |