Adds tool to create host images. #14
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: Export Artifacts | |
on: [pull_request, push] | |
jobs: | |
build-debs: | |
runs-on: ubuntu-latest | |
container: | |
image: debian@sha256:4cb3f4198e4af2d03dffe6bfa4f3686773596494ef298f3882553d52e885634b # debian:bullseye-20240110 | |
steps: | |
- name: apt update | |
run: apt update -y && apt upgrade -y | |
- name: install sudo | |
run: apt install -y sudo | |
- name: Checkout repository | |
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2 | |
- name: Build debs | |
run: bash build_debs.sh | |
- name: Build debs.tar | |
run: debs=(cuttlefish-*.deb) && tar -cvf debs.tar "${debs[@]}" | |
- name: Update debs.tar | |
uses: actions/upload-artifact@v3 | |
with: | |
name: debs | |
path: debs.tar | |
build-gce-image: | |
needs: build-debs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download debs.tar | |
uses: actions/download-artifact@v3 | |
with: | |
name: debs | |
- name: Untar debs.tar | |
run: tar -xf debs.tar | |
- name: list debs | |
run: ls | |