Skip to content

Build-Push

Build-Push #4

Workflow file for this run

# Only build (optionally push) the project image when a release is made, which
# is represented by a push-tag event or a workflow_dispatch from another workflow.
---
name: Build-Push
env:
# Current supported Python version. For applications, there is generally no
# reason to support multiple Python versions, so all actions are run with
# this version. Quote the version to avoid interpretation as a floating
# point number.
PYTHON_VERSION: "3.12"
UV_PYTHON_PREFERENCE: "system"
BUILDKIT_PROGRESS: "plain"
"on":
push:
tags:
- "*"
workflow_dispatch:
jobs:
ci:
uses:
./.github/workflows/ci.yaml
build:
runs-on: ubuntu-latest
needs: [ci]
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: evaluate expression
run: |

Check failure on line 37 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / Build-Push

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 37, Col: 14): Unexpected end of expression: ''refs/tags/''. Located at position 24 within expression: startsWith(github.ref, 'refs/tags/'
echo "Tagged release: ${{ startsWith(github.ref, 'refs/tags/' }}"
- uses: lsst-sqre/build-and-push-to-ghcr@v1
id: build
with:
image: ${{ github.repository }}
target: runtime-image
github_token: ${{ secrets.GITHUB_TOKEN }}
push: false