Skip to content

build arm64 images #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
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/[email protected]
with:
context: .
file: Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down