Skip to content

Commit ab009b1

Browse files
committed
Add workflow to build docker images for specific branches
1 parent f1583f6 commit ab009b1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Docker Image for specific branch
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'branch or tag to build'
8+
required: true
9+
10+
env:
11+
ORG: timescaledev
12+
TS_VERSION: ${{ github.event.inputs.version }}
13+
PLATFORM: linux/amd64
14+
15+
jobs:
16+
17+
# Build ubuntu TimescaleDB images for both TSL and OSS code.
18+
timescaledb:
19+
20+
name: PG${{ matrix.pg }}
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
pg: [14]
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- name: Set up Docker Buildx
31+
id: buildx
32+
uses: docker/setup-buildx-action@v1
33+
34+
- name: Linux available buildx platforms
35+
run: echo ${{ steps.buildx.outputs.platforms }}
36+
37+
- name: Login to DockerHub Registry
38+
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USER }} --password-stdin
39+
40+
- name: Build and push nightly Docker image for TimescaleDB
41+
run: make multi ORG=$ORG PG_VER=pg${{ matrix.pg }} TS_VERSION=$TS_VERSION PLATFORM=$PLATFORM TAG="-t timescaledev/timescaledb:branch-${TS_VERSION}-pg${{ matrix.pg }}"
42+

0 commit comments

Comments
 (0)