(Manual) Publish Omnibus to Docker #13
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: (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 | |
strategy: | |
fail-fast: false | |
matrix: | |
variant: [full, slim, ghc] | |
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 | |
env: | |
LEGEND_OMNIBUS_CONFIG_GITLAB_PAT: ${{ secrets.LEGEND_DEV_TEAM_GITLAB_READ_ONLY_PAT }} | |
LEGEND_OMNIBUS_CONFIG_GITLAB_OAUTH_APPLICATION_ID: ${{ secrets.LEGEND_DEV_TEAM_GITLAB_READ_ONLY_OAUTH_APP_ID }} | |
LEGEND_OMNIBUS_CONFIG_GITLAB_OAUTH_APPLICATION_SECRET: ${{ secrets.LEGEND_DEV_TEAM_GITLAB_READ_ONLY_OAUTH_SECRET_ID }} | |
run: | | |
chmod +x ./variants/${{ matrix.variant }}/publish.sh | |
chmod +x ./variants/${{ matrix.variant }}/build.sh | |
chmod +x ./variants/${{ matrix.variant }}/test.sh | |
./variants/${{ matrix.variant }}/publish.sh |