Skip to content

add github actions to build cabot-driver image with tags #1

add github actions to build cabot-driver image with tags

add github actions to build cabot-driver image with tags #1

Workflow file for this run

name: Test Building Docker Image and Workspace
on:
push:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Maximize build space
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
sudo rm -rf /opt/ghc
echo "Available storage:"
df -h
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- name: Install vcs
run: pip3 install vcstool
- name: Prepare thirdparty repos
run: ./setup-dependency.sh
- name: Get branch name
id: get_branch
run: echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Buildx bake
shell: bash
run: |
docker login -u daisukesato80 -p "${{ secrets.DOCKERHUB_TOKEN }}"
./bake-docker.sh -t "latest,${{ env.BRANCH_NAME }}"