Skip to content

GitHub

GitHub #1

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build prod and push
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
tags:
- ghcr.io/ucsd-e4e/maestro_scheduler:main

Check failure on line 33 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / Docker Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 33, Col: 9): A sequence was not expected .github/workflows/docker-image.yml (Line: 43, Col: 9): A sequence was not expected
push: true
-
name: Build prod and push
if: github.ref != 'refs/heads/main'
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
tags:
- ghcr.io/ucsd-e4e/maestro_scheduler:${{ github.head_ref }}
push: true
cache-from: type=registry,ref=user/ghcr.io/ucsd-e4e/maestro_scheduler:${{ github.head_ref }}_cache
cache-to: type=registry,ref=user/ghcr.io/ucsd-e4e/maestro_scheduler:${{ github.head_ref }}_cache,mode=max