From 73d2b38c280f728c894f85fbf5fc923b3d2e692d Mon Sep 17 00:00:00 2001 From: betolink Date: Thu, 15 May 2025 21:56:13 -0500 Subject: [PATCH 1/3] build arm64 images --- .github/workflows/packages.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index ebe63b13..651580ad 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 + uses: docker/metadata-action@5.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 }} From 16f43d784bb4be3aa0e712c052c2040878c3beab Mon Sep 17 00:00:00 2001 From: betolink Date: Thu, 15 May 2025 22:14:27 -0500 Subject: [PATCH 2/3] updated changelog --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index cd69188d..bc7741e6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,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 ## [5.0.2] - 2025-04-07 From 01b9c56520e89250726df4a8f878675cc4da535d Mon Sep 17 00:00:00 2001 From: betolink Date: Thu, 15 May 2025 22:29:48 -0500 Subject: [PATCH 3/3] fix metadata version --- .github/workflows/packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 651580ad..b8ddcebb 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -38,7 +38,7 @@ jobs: - name: Extract metadata (name, tag) for Docker id: meta - uses: docker/metadata-action@5.7.0 + uses: docker/metadata-action@v5.7.0 with: images: ghcr.io/stac-utils/stac-fastapi-pgstac