-
Notifications
You must be signed in to change notification settings - Fork 28
53 lines (41 loc) · 1.54 KB
/
docker-branch.yml
File metadata and controls
53 lines (41 loc) · 1.54 KB
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
48
49
50
51
52
# Workflow to build docker images for a specific branch
#
# You can use the GitHub CLI to trigger this workflow like so:
# gh workflow run docker-branch.yml -R timescale/timescaledb-docker -f branch=1-step-policy-alpha
#
# The built images will be uploaded to our timescaledev account on dockerhub.
# You can view them here: https://hub.docker.com/r/timescaledev/timescaledb/tags
#
name: Docker Image for specific branch
on:
workflow_dispatch:
inputs:
branch:
description: 'branch or tag to build'
required: true
env:
ORG: samagragovernance
TS_VERSION: main
PLATFORM: linux/amd64
jobs:
# Build ubuntu TimescaleDB images for both TSL and OSS code.
timescaledb:
name: Docker ${{ github.event.inputs.branch }} PG${{ matrix.pg }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pg: [15]
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Linux available buildx platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Linux available buildx platforms
run: echo ${TS_VERSION}
- 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 Postgres
run: make multi ORG=$ORG PG_VER=pg${{ matrix.pg }} TS_VERSION="${TS_VERSION}" PLATFORM=$PLATFORM TAG="-t samagragovernance/postgres:branch-${TS_VERSION}-pg${{ matrix.pg }}"