Automate GHCR environment publishing
This commit is contained in:
parent
6406f673c1
commit
89d0cb93bf
5 changed files with 78 additions and 1 deletions
46
.github/workflows/publish-environments.yml
vendored
Normal file
46
.github/workflows/publish-environments.yml
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
name: Publish Environments
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
concurrency:
|
||||
group: publish-environments-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-24.04
|
||||
env:
|
||||
UV_CACHE_DIR: .uv-cache
|
||||
OCI_REGISTRY_USERNAME: ${{ github.actor }}
|
||||
OCI_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- name: Check out source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Set up uv
|
||||
uses: astral-sh/setup-uv@v6
|
||||
|
||||
- name: Install project dependencies
|
||||
run: make setup
|
||||
|
||||
- name: Run project checks
|
||||
run: make check
|
||||
|
||||
- name: Build real runtime inputs
|
||||
run: make runtime-materialize
|
||||
|
||||
- name: Publish official environments to GHCR
|
||||
run: make runtime-publish-official-environments-oci
|
||||
Loading…
Add table
Add a link
Reference in a new issue