Skip to content

Build Holo Docker images #39

Build Holo Docker images

Build Holo Docker images #39

Workflow file for this run

name: Build Holo Docker images
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
if: ${{ !env.ACT }}
run: |
echo $GITHUB_TOKEN | docker login ghcr.io -u SteamDeckHomebrew --password-stdin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download SteamOS
run: ./download.sh
- name: Build base image
run: sudo ./build.sh
- name: Cleanup SteamOS image
run: rm -rf ./steamos_image ./steamos
- name: Build Rust toolchain image
if: ${{ !env.ACT }}
run: |
cd languages
docker build -t ghcr.io/steamdeckhomebrew/holo-toolchain-rust:latest -f ./rust.dockerfile .
- name: Build Go toolchain image
if: ${{ !env.ACT }}
run: |
cd languages
docker build -t ghcr.io/steamdeckhomebrew/holo-toolchain-go:latest -f ./go.dockerfile .
- name: Wait for other runs to complete
if: ${{ !env.ACT }}
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push Base image
if: ${{ !env.ACT }}
run: docker push ghcr.io/steamdeckhomebrew/holo-base:latest
- name: Push Rust toolchain image
if: ${{ !env.ACT }}
run: docker push ghcr.io/steamdeckhomebrew/holo-toolchain-rust:latest
- name: Push Go toolchain image
if: ${{ !env.ACT }}
run: docker push ghcr.io/steamdeckhomebrew/holo-toolchain-go:latest
- name: Log out of GitHub Container Registry
if: ${{ !env.ACT }}
run: |
docker logout ghcr.io