Skip to content

Publish Omnibus Snapshot to Docker #5017

Publish Omnibus Snapshot to Docker

Publish Omnibus Snapshot to Docker #5017

name: Publish Omnibus Snapshot to Docker
on:
workflow_dispatch:
schedule:
- cron: "0 */2 * * *" # runs every 2 hours
jobs:
publish-snapshot-docker:
if: github.ref == 'refs/heads/master' && github.repository == 'finos/legend'
name: Publish Omnibus Snapshot Docker Image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
variant:
- full
- slim
- slim-dbs
steps:
- name: Checkout code
uses: actions/[email protected]
- 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-snapshot.sh
chmod +x ./variants/${{ matrix.variant }}/build.sh
chmod +x ./variants/${{ matrix.variant }}/test.sh
./variants/${{ matrix.variant }}/publish-snapshot.sh