Skip to content

Release

Release #8

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
postgres_version: [15, 16, 17]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Generate image identifier
id: name
uses: ASzc/change-string-case-action@v5
with:
string: ${{ github.repository }}
- name: Build
uses: docker/build-push-action@v6
with:
push: false
build-args: |
POSTGRES_VERSION=${{ matrix.postgres_version }}
tags: |
${{ steps.name.outputs.lowercase }}:latest
${{ steps.name.outputs.lowercase }}:${{ github.event.release.name }}-pg${{matrix.postgres_version}}
platforms: linux/amd64,linux/arm64
build-latest:
steps:

Check failure on line 46 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 46, Col: 5): Required property is missing: runs-on
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Generate image identifier
id: name
uses: ASzc/change-string-case-action@v5
with:
string: ${{ github.repository }}
- name: Build
uses: docker/build-push-action@v6
with:
push: false
build-args: |
POSTGRES_VERSION=17
tags: |
${{ steps.name.outputs.lowercase }}:latest
platforms: linux/amd64,linux/arm64