Skip to content

(Manual) Create New Docker Release #5

(Manual) Create New Docker Release

(Manual) Create New Docker Release #5

name: (Manual) Create New Docker Release
on:
workflow_dispatch:
inputs:
tag:
description: "Tag - e.g. 2023-09-09, 2022-10-10 (default to today's date)"
required: false
legend_engine_version:
description: "Legend Engine version"
required: false
legend_sdlc_version:
description: "Legend SDLC version"
required: false
legend_studio_version:
description: "Legend Studio version"
required: false
# This script will create a new release version of date format (YYYY-MM-DD)
# and bump dependecies version in Legend Omnibus
# See https://github.com/finos/legend/tree/master/installers/omnibus
jobs:
create-new-docker-release:
# There is currently no way to limit workflow dispatch to only allow default branch
# so we need to restrict it here
# See https://github.community/t/limit-branch-for-workflow-dispatch/122099
if: github.ref == 'refs/heads/master' && github.repository == 'finos/legend'
name: Create New Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.5.2
with:
token: ${{ secrets.FINOS_GITHUB_TOKEN }}
- name: Configure Git
run: |
git config --global user.email "37706051+finos-admin@users.noreply.github.com"
git config --global user.name "FINOS Administrator"
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: 16
- name: Create New Release Version
env:
NEW_VERSION: ${{ github.event.inputs.tag }}
NEW_ENGINE_VERSION: ${{ github.event.inputs.legend_engine_version }}
NEW_SDLC_VERSION: ${{ github.event.inputs.legend_sdlc_version }}
NEW_STUDIO_VERSION: ${{ github.event.inputs.legend_studio_version }}
run: |
chmod +x ./scripts/create-new-release.sh
./scripts/create-new-release.sh
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: finos
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Omnibus to Docker
working-directory: ./installers/omnibus
run: |
chmod +x ./publish.sh
chmod +x ./build.sh
./publish.sh