-
Notifications
You must be signed in to change notification settings - Fork 10
69 lines (55 loc) · 1.72 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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