diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index ebe63b1..b8ddceb 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -1,37 +1,53 @@ name: packages + on: push: branches: - main tags: - "*" - workflow_dispatch: + paths: + - Dockerfile + - setup.cfg + - "**/*.py" + - .github/workflows/packages.yml + workflow_dispatch: + jobs: docker-build-push: runs-on: ubuntu-latest + permissions: contents: read packages: write steps: - name: Checkout repository uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to the Container registry uses: docker/login-action@v3.4.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker + + + - name: Extract metadata (name, tag) for Docker id: meta uses: docker/metadata-action@v5.7.0 with: images: ghcr.io/stac-utils/stac-fastapi-pgstac - - name: Build and push Docker image + + - name: Build and push Docker image (multi-arch) uses: docker/build-push-action@v6.16.0 with: context: . file: Dockerfile push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/CHANGES.md b/CHANGES.md index 426768a..fe0f8ee 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -38,6 +38,7 @@ - update `stac-fastapi-*` version requirements to `>=5.2,<6.0` - add pgstac health-check in `/_mgmt/health` - switch from using pygeofilter to cql2 +- publish arm64 Docker images ### Added