Skip to content

Commit d9f88de

Browse files
build arm64 images (#244)
* build arm64 images * updated changelog * fix metadata version --------- Co-authored-by: Vincent Sarago <[email protected]>
1 parent 0f30cc1 commit d9f88de

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/packages.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,52 @@
11
name: packages
2+
23
on:
34
push:
45
branches:
56
- main
67
tags:
78
- "*"
8-
workflow_dispatch:
9+
paths:
10+
- Dockerfile
11+
- setup.cfg
12+
- "**/*.py"
13+
- .github/workflows/packages.yml
14+
workflow_dispatch:
15+
916

1017
jobs:
1118
docker-build-push:
1219
runs-on: ubuntu-latest
20+
1321
permissions:
1422
contents: read
1523
packages: write
1624
steps:
1725
- name: Checkout repository
1826
uses: actions/checkout@v4
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
1931
- name: Log in to the Container registry
2032
uses: docker/[email protected]
2133
with:
2234
registry: ghcr.io
2335
username: ${{ github.actor }}
2436
password: ${{ secrets.GITHUB_TOKEN }}
25-
- name: Extract metadata (tags, labels) for Docker
37+
38+
- name: Extract metadata (name, tag) for Docker
2639
id: meta
2740
uses: docker/[email protected]
2841
with:
2942
images: ghcr.io/stac-utils/stac-fastapi-pgstac
43+
3044
- name: Build and push Docker image
3145
uses: docker/[email protected]
3246
with:
3347
context: .
3448
file: Dockerfile
3549
push: true
50+
platforms: linux/amd64,linux/arm64
3651
tags: ${{ steps.meta.outputs.tags }}
3752
labels: ${{ steps.meta.outputs.labels }}

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
- update `stac-fastapi-*` version requirements to `>=5.2,<6.0`
4545
- add pgstac health-check in `/_mgmt/health`
4646
- switch from using pygeofilter to cql2
47+
- publish arm64 Docker images
4748

4849
### Added
4950

0 commit comments

Comments
 (0)