Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
labels:
- "dependencies"
schedule:
interval: "weekly"
cooldown:
default-days: 7
groups:
tracing:
patterns:
- "go.opentelemetry.io/*"
golangx:
patterns:
- "golang.org/x/*"

- package-ecosystem: "github-actions"
directory: "/"
labels:
- "dependencies"
schedule:
interval: "weekly"
cooldown:
default-days: 7
41 changes: 41 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Checks"
on:
pull_request:
push:
branches:
- main

jobs:
build:
name: "Build and test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"

- name: Run unit tests
run: go test -v ./...

- name: Build binaries
run: go install ./cmd/...

precommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"

- uses: j178/prek-action@v1
with:
extra-args: --all-files --stage=manual

- uses: golangci/golangci-lint-action@v9
with:
version: latest

- name: generate command strings
run: go generate ./... && git diff --exit-code
98 changes: 46 additions & 52 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,142 +1,136 @@
name: Release

on:
create:
push:
tags:
- 'v*'
pull_request:

jobs:
release:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest

steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
with:
version: v0.9.1
-
name: Login to DockerHub
uses: docker/login-action@v3

- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- uses: actions/checkout@v6
with:
fetch-depth: 0
-
name: "Fetch latest tag"
id: get-latest-tag
- id: get-latest-tag
if: github.event_name != 'pull_request'
uses: "WyriHaximus/github-action-get-previous-tag@v2"
-
name: Build and push Postgres 15

- name: Build and push Postgres 15
id: docker_build_15
uses: docker/build-push-action@v6
with:
build-args: |
PG_VERSION=15.10
PG_MAJOR_VERSION=15
VERSION=${{ steps.get-latest-tag.outputs.tag }}
VERSION=${{ steps.get-latest-tag.outputs.tag || 'pr-build' }}
context: .
file: ./pg15/Dockerfile
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
flyio/postgres-flex:15
flyio/postgres-flex:15.10
-
name: Build and push Postgres 15 Timescale DB

- name: Build and push Postgres 15 Timescale DB
id: docker_build_15_timescaledb
uses: docker/build-push-action@v6
with:
build-args: |
PG_VERSION=15.10
PG_MAJOR_VERSION=15
VERSION=${{ steps.get-latest-tag.outputs.tag }}
VERSION=${{ steps.get-latest-tag.outputs.tag || 'pr-build' }}
context: .
file: ./pg15/Dockerfile-timescaledb
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
flyio/postgres-flex-timescaledb:15
flyio/postgres-flex-timescaledb:15.10

-
name: Build and push Postgres 16
- name: Build and push Postgres 16
id: docker_build_16
uses: docker/build-push-action@v6
with:
build-args: |
PG_VERSION=16.6
PG_MAJOR_VERSION=16
VERSION=${{ steps.get-latest-tag.outputs.tag }}
VERSION=${{ steps.get-latest-tag.outputs.tag || 'pr-build' }}
context: .
file: ./pg16/Dockerfile
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
flyio/postgres-flex:16
flyio/postgres-flex:16.6
-
name: Build and push Postgres 16 Timescale DB

- name: Build and push Postgres 16 Timescale DB
id: docker_build_16_timescaledb
uses: docker/build-push-action@v6
with:
build-args: |
PG_VERSION=16.6
PG_MAJOR_VERSION=16
VERSION=${{ steps.get-latest-tag.outputs.tag }}
VERSION=${{ steps.get-latest-tag.outputs.tag || 'pr-build' }}
context: .
file: ./pg16/Dockerfile-timescaledb
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
flyio/postgres-flex-timescaledb:16
flyio/postgres-flex-timescaledb:16.6

-
name: Build and push Postgres 17
- name: Build and push Postgres 17
id: docker_build_17
uses: docker/build-push-action@v6
with:
build-args: |
PG_VERSION=17.2
PG_MAJOR_VERSION=17
VERSION=${{ steps.get-latest-tag.outputs.tag }}
VERSION=${{ steps.get-latest-tag.outputs.tag || 'pr-build' }}
context: .
file: ./pg17/Dockerfile
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
flyio/postgres-flex:17
flyio/postgres-flex:17.2
-
name: Build and push Postgres 17 Timescale DB

- name: Build and push Postgres 17 Timescale DB
id: docker_build_17_timescaledb
uses: docker/build-push-action@v6
with:
build-args: |
PG_VERSION=17.2
PG_MAJOR_VERSION=17
VERSION=${{ steps.get-latest-tag.outputs.tag }}
VERSION=${{ steps.get-latest-tag.outputs.tag || 'pr-build' }}
context: .
file: ./pg17/Dockerfile-timescaledb
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: |
flyio/postgres-flex-timescaledb:17
flyio/postgres-flex-timescaledb:17.2
-
name: Postgres 15 Image digest

- name: Postgres 15 Image digest
run: echo ${{ steps.docker_build_15.outputs.digest }}
-
name: Postgres 15 TimescaleDB Image digest

- name: Postgres 15 TimescaleDB Image digest
run: echo ${{ steps.docker_build_15_timescaledb.outputs.digest }}
-
name: Postgres 16 Image digest

- name: Postgres 16 Image digest
run: echo ${{ steps.docker_build_16.outputs.digest }}
-
name: Postgres 16 TimescaleDB Image digest

- name: Postgres 16 TimescaleDB Image digest
run: echo ${{ steps.docker_build_16_timescaledb.outputs.digest }}
-
name: Postgres 17 Image digest

- name: Postgres 17 Image digest
run: echo ${{ steps.docker_build_17.outputs.digest }}
-
name: Postgres 17 TimescaleDB Image digest

- name: Postgres 17 TimescaleDB Image digest
run: echo ${{ steps.docker_build_17_timescaledb.outputs.digest }}
76 changes: 0 additions & 76 deletions .github/workflows/push.yml

This file was deleted.

Loading
Loading