Skip to content

Build Arches PostGIS #94

Build Arches PostGIS

Build Arches PostGIS #94

Workflow file for this run

# TODO: This is less than ideal, but good familiarisation task
# to replace
name: Build Arches PostGIS
run-name: Build Arches PostGIS
on: [push]
env:
ARCHES_BASE: flaxandteal/arches-postgis
ARCHES_VERSION: "7.5-dev"
REGISTRY: ghcr.io
jobs:
Build-Arches:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Docker Context for Buildx
id: buildx-context
run: |
docker context create builders
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
version: latest
endpoint: builders
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.ARCHES_BASE }}-${{ env.ARCHES_VERSION }}
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
file: Dockerfile.postgres
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
ARCHES_BASE=${{ env.ARCHES_BASE }}