Skip to content

(Manual) Publish Omnibus to Docker #8

(Manual) Publish Omnibus to Docker

(Manual) Publish Omnibus to Docker #8

name: (Manual) Publish Omnibus to Docker
on: workflow_dispatch
jobs:
publish-docker:
# 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: Publish Omnibus Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.5.2
- 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 ./build.sh
chmod +x ./publish.sh
./publish.sh