-
Notifications
You must be signed in to change notification settings - Fork 130
48 lines (35 loc) · 1.11 KB
/
docker-nightly-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Docker Image Nightly Build CI
on:
push:
branches:
- cron_build
pull_request:
paths: .github/workflows/docker-nightly-build.yml
workflow_dispatch:
schedule:
# run daily 0:00
- cron: '0 0 * * *'
env:
ORG: timescaledev
TS_VERSION: main
PLATFORM: linux/amd64
jobs:
# Build ubuntu TimescaleDB images for both TSL and OSS code.
timescaledb:
name: PG${{ matrix.pg }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pg: [14, 15, 16, 17]
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Linux available buildx platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USER }} --password-stdin
- name: Build and push nightly Docker image for TimescaleDB
run: make multi ORG=$ORG PG_VER=pg${{ matrix.pg }} TS_VERSION=$TS_VERSION PLATFORM=$PLATFORM TAG="-t timescaledev/timescaledb:nightly-pg${{ matrix.pg }}"