-
Notifications
You must be signed in to change notification settings - Fork 204
38 lines (36 loc) · 1.36 KB
/
publish-docker-snapshot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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