Build CI Image #291
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build CI Image | |
on: | |
pull_request: | |
paths: | |
- 'docker/ci/**' | |
- '.github/workflows/ci_image_build.yml' | |
- 'tools/dependencies.sh' | |
workflow_dispatch: | |
inputs: | |
tag-base: | |
description: 'Push image to DockerHub with this base tag (remove "-test" enable)' | |
required: false | |
# Repeating the default here for ease of editing in the github actions form. Keep in sync with below. | |
default: timescaledev/toolkit-builder-test | |
toolkit-commit: | |
description: 'Toolkit commit (branch, tag, etc.) to build image from' | |
required: false | |
default: main | |
builder-commit: | |
description: 'Commit (branch, tag, etc.) on release-build-scripts repository to use' | |
required: false | |
jobs: | |
build: | |
env: | |
GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB_PACKAGE }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Run release-build-scripts job | |
# Repeating the default here for 'pull_request'. Keep in sync with above. | |
run: | | |
gh workflow run toolkit-image.yml \ | |
-R timescale/release-build-scripts \ | |
-r ${{ inputs.builder-commit || 'main' }} \ | |
-f tag-base=${{ inputs.tag-base || 'timescaledev/toolkit-builder-test' }} \ | |
-f toolkit-commit=${{ inputs.toolkit-commit || github.event.pull_request.head.sha }} |