Skip to content

Merge remote-tracking branch 'origin/foss4geu' into foss4geu-helmchart #3

Merge remote-tracking branch 'origin/foss4geu' into foss4geu-helmchart

Merge remote-tracking branch 'origin/foss4geu' into foss4geu-helmchart #3

name: Publish workshop image
# Builds the JupyterLab workshop image (Dockerfile.local + environment.yml) and
# pushes it to GHCR. Consumed by the Helm chart's per-participant Labs
# (infrastructure/charts/eoapi-workshop, values key `jupyter.image`).
on:
push:
branches:
- main
- foss4geu-helmchart # workshop branch — image is built from here for now
paths:
- Dockerfile.local
- environment.yml
- docs/**
- .github/workflows/publish-workshop-image.yml
workflow_dispatch: {} # manual run (once this workflow is on the default branch)
jobs:
publish:
name: Build and push
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v5
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Image metadata
id: meta
uses: docker/metadata-action@v5
with:
# Portable: resolves to ghcr.io/developmentseed/eoapi-workshop in this repo.
images: ghcr.io/${{ github.repository_owner }}/eoapi-workshop
tags: |
type=raw,value=latest
type=sha,format=long
type=ref,event=branch
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.local
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}