Updater Developer Notes #703
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Actions for GEOS | |
# | |
# Paul Ramsey <pramsey at cleverelephant dot ca> | |
# Build a geosop container and deploy to GHCR | |
name: 'Container' | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'web/**' | |
jobs: | |
container: | |
name: 'Build container' | |
if: github.repository == 'libgeos/geos' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Check Out' | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get Dockerfile | |
run: | | |
cp tools/ci/geosop/Dockerfile . | |
- name: Build and Push | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
# platforms: linux/amd64,linux/arm64 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
ghcr.io/libgeos/geosop:latest | |