Skip to content

Commit

Permalink
Deploy arm64 docker image into github release
Browse files Browse the repository at this point in the history
  • Loading branch information
0405ysj committed Aug 26, 2024
1 parent 07134d2 commit 57ca01e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,21 @@ jobs:
with:
name: docker-image-x86_64
path: orchestration-image-x86_64.tar
build-docker-image-arm64-job:
runs-on: arm-ubuntu-arm-22.04-4core
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: Build docker image
run: bazel build --sandbox_writable_path=$HOME //docker:orchestration_image_tar
- name: Set filename of docker image
run: mv bazel-bin/docker/orchestration-image.tar orchestration-image-arm64.tar
- name: Publish docker image
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # aka v4.0.0
with:
name: docker-image-arm64
path: orchestration-image-arm64.tar
5 changes: 5 additions & 0 deletions .github/workflows/host-image-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ jobs:
with:
name: docker-image-x86_64
path: "tools/cuttlefish-host-image-installer"
- name: Download orchestration-image-arm64.tar
uses: actions/download-artifact@7a1cd3216ca9260cd8022db641d960b1db4d1be4 # aka v4.0.0
with:
name: docker-image-arm64
path: "tools/cuttlefish-host-image-installer"
- name: Releases update
run: cd tools/cuttlefish-host-image-installer && ./update_github_releases.sh && echo "Application successfully deployed."
env:
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Docker image includes HO(Host Orchestrator) inside,
# so it could execute CF instance with API in HO.

FROM debian:stable-20211011 AS cuttlefish-hostpkg-builder
FROM debian:12 AS cuttlefish-hostpkg-builder

USER root
WORKDIR /root
Expand All @@ -19,7 +19,7 @@ RUN apt install -y --no-install-recommends \
COPY . /root/android-cuttlefish
RUN ["/bin/bash", "-c", "/root/android-cuttlefish/tools/buildutils/build_packages.sh"]

FROM debian:stable-20211011 AS cuttlefish-orchestration
FROM debian:12 AS cuttlefish-orchestration

# Expose Operator Port (HTTP:1080, HTTPS:1443)
EXPOSE 1080 1443
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ cp u-boot.bin u-boot"_${STABLE_VERSION}".bin
cp preseed-mini.iso.xz preseed-mini"_${STABLE_VERSION}".iso.xz
cp meta_gigamp_packages.7z meta_gigamp_packages"_${STABLE_VERSION}".7z
cp orchestration-image-x86_64.tar orchestration-image-x86_64"_${STABLE_VERSION}".tar
cp orchestration-image-arm64.tar orchestration-image-arm64"_${STABLE_VERSION}".tar

# upload assets to both latest and stable versions
echo "step 5: upload assets to both latest and stable versions"
Expand All @@ -67,10 +68,12 @@ do
gh release upload "$version" cuttlefish_packages"_${STABLE_VERSION}".7z
gh release upload "$version" meta_gigamp_packages"_${STABLE_VERSION}".7z
gh release upload "$version" orchestration-image-x86_64"_${STABLE_VERSION}".tar
gh release upload "$version" orchestration-image-arm64"_${STABLE_VERSION}".tar

gh release upload "$version" u-boot.bin
gh release upload "$version" preseed-mini.iso.xz
gh release upload "$version" cuttlefish_packages.7z
gh release upload "$version" meta_gigamp_packages.7z
gh release upload "$version" orchestration-image-x86_64.tar
gh release upload "$version" orchestration-image-arm64.tar
done

0 comments on commit 57ca01e

Please sign in to comment.