Skip to content

run builder ci on PRs #67

run builder ci on PRs

run builder ci on PRs #67

Workflow file for this run

name: Build Builder Docker image
on:
workflow_dispatch:
push:
paths:
- "builder/**"
- ".github/workflows/build-builder.yml"
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
if: ${{ (github.ref == 'refs/heads/main' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch')) }}

Check failure on line 23 in .github/workflows/build-builder.yml

View workflow run for this annotation

GitHub Actions / Build Builder Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/build-builder.yml (Line: 23, Col: 11): Unexpected end of expression: ')'. Located at position 111 within expression: (github.ref == 'refs/heads/main' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch')) .github/workflows/build-builder.yml (Line: 40, Col: 11): Unexpected end of expression: ')'. Located at position 111 within expression: (github.ref == 'refs/heads/main' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch'))
run: |
echo $GITHUB_TOKEN | docker login ghcr.io -u SteamDeckHomebrew --password-stdin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
cd builder
docker build -t ghcr.io/steamdeckhomebrew/builder:latest .
- name: Wait for other runs to complete
uses: softprops/turnstyle@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push
if: ${{ (github.ref == 'refs/heads/main' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch')) }}
run: |
docker push ghcr.io/steamdeckhomebrew/builder:latest
- name: Log out of GitHub Container Registry
run: |
docker logout ghcr.io