Skip to content

docker pg build

docker pg build #11

Workflow file for this run

name: "docker pg build"
on:
workflow_dispatch:
# schedule:
# - cron: '0 0 * * 0'
jobs:
build:
name: Create Release
runs-on: ubuntu-20.04
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- 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: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
# platforms: ${{ matrix.platforms }}
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ghcr.io/x-b-e/server-pg:13
build-args: |
PG_MAJOR=13
PG_IMAGE=postgis/postgis:13-3.4
# outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=XBE server pg
# cache-from: ghcr.io/x-b-e/server-pg