Skip to content

Merge branch 'develop' #20

Merge branch 'develop'

Merge branch 'develop' #20

Workflow file for this run

name: Build and publish a container image
on:
push:
branches: ['master']
tags: ['v*']
workflow_dispatch:
repository_dispatch:
types: [release]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract container metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
labels: |
org.opencontainers.image.title=eodag
org.opencontainers.image.description=Earth Observation Data Access Gateway
org.opencontainers.image.url=https://github.com/{{ github.repository }}
org.opencontainers.image.source=https://github.com/{{ github.repository }}.git
org.opencontainers.image.licenses=Apache-2.0
org.opencontainers.image.authors=CS GROUP - France (CSSI) <eodag@csgroup.space>
- name: Build and push container image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}