Merge pull request #6 from internetofwater/addOntologyLoaderContainer #1
This file contains hidden or 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
| # Copyright 2025 Lincoln Institute of Land Policy | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Push Loader Image To GHCR | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: | |
| ${{ github.workflow }}-${{ github.ref_name }}-${{ | |
| github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| build_and_push: | |
| name: "build and push geoconnex ontology loader image" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and export | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: Dockerfile | |
| push: true | |
| tags: ghcr.io/internetofwater/geoconnex_ontology_loader:latest | |
| cache-from: type=gha,scope=geoconnex_ontology_loader | |
| platforms: linux/amd64 | |
| cache-to: type=gha,mode=max,scope=geoconnex_ontology_loader |