Skip to content

docker-postgres

docker-postgres #4

Workflow file for this run

name: docker-postgres
permissions:
packages: write
on:
workflow_dispatch:
push: { paths: [ 'postgres/**' ] }
jobs:
postgres-17:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: docker/login-action@v4
with:
username: starudream
password: ${{ secrets.DOCKER_TOKEN }}
- uses: docker/login-action@v4
with:
registry: ghcr.io
username: starudream
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v4
- uses: docker/setup-buildx-action@v4
- uses: docker/build-push-action@v7
with:
tags: starudream/postgres:17,ghcr.io/starudream/postgres:17
context: postgres
file: postgres/Dockerfile-17
platforms: linux/amd64,linux/arm64
pull: true
push: true
cache-from: type=gha,scope=${{ github.job }}
cache-to: type=gha,mode=max,scope=${{ github.job }}