-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 4.62 KB
/
docker.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Docker Build, Push & Deploy
on:
release:
types: [published]
push:
branches: ['main']
jobs:
build:
uses: atb-as/workflows/.github/workflows/cluster-docker-build-tag-push.yaml@v2
with:
image: gcr.io/atb-mobility-platform/planner-web
build_args: |
ATB_NEXT_PUBLIC_MAPBOX_DEFAULT_LAT=63.43457
ATB_NEXT_PUBLIC_MAPBOX_DEFAULT_LNG=10.39844
ATB_NEXT_PUBLIC_FIREBASE_PROJECT_ID=${{ github.event_name == 'release' && 'atb-mobility-platform' || 'atb-mobility-platform-staging'}}
ATB_NEXT_PUBLIC_FIREBASE_PUBLIC_API_KEY=${{ github.event_name == 'release' && 'AIzaSyBiw58LOLaBGiNYI1_bj5J8jC5E56WxmB8' || 'AIzaSyDoat8ob5tewAXaPEhqbZKzx8e7LC5nuzQ' }}
ATB_NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=${{ github.event_name == 'release' && 'atb-mobility-platform.firebaseapp.com' || 'atb-mobility-platform-staging.firebaseapp.com' }}
ATB_NEXT_PUBLIC_FIREBASE_APP_ID=${{ github.event_name == 'release' && '1:827196677776:web:c4b1d8924bb5778bf50215' || '1:939812594010:web:0308b2a9cdc80b0d069363' }}
ATB_NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=${{ github.event_name == 'release' && '' || '' }}
NFK_NEXT_PUBLIC_MAPBOX_DEFAULT_LAT=67.280357
NFK_NEXT_PUBLIC_MAPBOX_DEFAULT_LNG=14.404916
NFK_NEXT_PUBLIC_FIREBASE_PROJECT_ID=${{ github.event_name == 'release' && 'nfk-prod' || 'nfk-staging'}}
NFK_NEXT_PUBLIC_FIREBASE_PUBLIC_API_KEY=${{ github.event_name == 'release' && 'AIzaSyDGwZLvjhRJmxiU9BOkbYn9P78QTJsAaBQ' || 'AIzaSyDU18r0GPKIGcVxA3Zj_zgkrtqaUfcOHGM' }}
NFK_NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=${{ github.event_name == 'release' && 'nfk-prod.firebaseapp.com' || 'nfk-staging.firebaseapp.com' }}
NFK_NEXT_PUBLIC_FIREBASE_APP_ID=${{ github.event_name == 'release' && '1:638315587956:web:51e95a11a03f27dc9ca421' || '1:793301954236:web:908723b8ded2824cadeab9' }}
NFK_NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=${{ github.event_name == 'release' && '' || '' }}
FRAM_NEXT_PUBLIC_MAPBOX_DEFAULT_LAT=62.4705
FRAM_NEXT_PUBLIC_MAPBOX_DEFAULT_LNG=6.1533
FRAM_NEXT_PUBLIC_FIREBASE_PROJECT_ID=${{ github.event_name == 'release' && 'fram-prod-a7850' || 'fram-staging'}}
FRAM_NEXT_PUBLIC_FIREBASE_PUBLIC_API_KEY=${{ github.event_name == 'release' && 'AIzaSyBw6YwFJV__iw6Qp7bLdcwcUKtr2f02H2M' || 'AIzaSyBTsBaCnXcCFPQUaXTPLSMGfydaTpaLDrs' }}
FRAM_NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=${{ github.event_name == 'release' && 'fram-prod-a7850.firebaseapp.com' || 'fram-staging.firebaseapp.com' }}
FRAM_NEXT_PUBLIC_FIREBASE_APP_ID=${{ github.event_name == 'release' && '1:717595301444:web:1e16129330d562f1b3ce11' || '1:312905478211:web:41c6f9db83ae5ef0efa4f6' }}
FRAM_NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=${{ github.event_name == 'release' && 'G-KS45JBFWF4' || '' }}
TROMS_NEXT_PUBLIC_MAPBOX_DEFAULT_LAT=69.665229
TROMS_NEXT_PUBLIC_MAPBOX_DEFAULT_LNG=18.9070347
TROMS_NEXT_PUBLIC_FIREBASE_PROJECT_ID=${{ github.event_name == 'release' && 'troms-prod' || 'troms-staging'}}
TROMS_NEXT_PUBLIC_FIREBASE_PUBLIC_API_KEY=${{ github.event_name == 'release' && 'AIzaSyAzGgJ8ne8N4CIfASHao3YpOsUvZfOAdiE' || 'AIzaSyCtJMximw0SL9N8YNH21TWDO0s_mv_9crE' }}
TROMS_NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=${{ github.event_name == 'release' && 'troms-prod.firebaseapp.com' || 'troms-staging.firebaseapp.com' }}
TROMS_NEXT_PUBLIC_FIREBASE_APP_ID=${{ github.event_name == 'release' && '1:667141878008:web:b1a8f3e21716e96e954b0d' || '1:973624729382:web:a84d8a489613a14be12be7' }}
TROMS_NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=${{ github.event_name == 'release' && 'G-ZDRTXVTCQD' || '' }}
NEXT_PUBLIC_ENVIRONMENT=${{ github.event_name == 'release' && 'prod' || 'staging' }}
secrets:
github_pat: ${{ secrets.GH_PAT }}
build_secrets: |
ATB_NEXT_PUBLIC_MAPBOX_API_TOKEN=${{ secrets.ATB_NEXT_PUBLIC_MAPBOX_API_TOKEN }}
ATB_NEXT_PUBLIC_MAPBOX_STOP_PLACES_STYLE_URL=${{ secrets.ATB_NEXT_PUBLIC_MAPBOX_STOP_PLACES_STYLE_URL }}
NFK_NEXT_PUBLIC_MAPBOX_API_TOKEN=${{ secrets.NFK_NEXT_PUBLIC_MAPBOX_API_TOKEN }}
NFK_NEXT_PUBLIC_MAPBOX_STOP_PLACES_STYLE_URL=${{ secrets.NFK_NEXT_PUBLIC_MAPBOX_STOP_PLACES_STYLE_URL }}
FRAM_NEXT_PUBLIC_MAPBOX_API_TOKEN=${{ github.event_name == 'release' && secrets.FRAM_NEXT_PUBLIC_MAPBOX_API_TOKEN || secrets.FRAM_NEXT_PUBLIC_MAPBOX_API_TOKEN_STAGING }}
FRAM_NEXT_PUBLIC_MAPBOX_STOP_PLACES_STYLE_URL=${{ secrets.FRAM_NEXT_PUBLIC_MAPBOX_STOP_PLACES_STYLE_URL }}
TROMS_NEXT_PUBLIC_MAPBOX_API_TOKEN=${{ secrets.TROMS_NEXT_PUBLIC_MAPBOX_API_TOKEN }}
TROMS_NEXT_PUBLIC_MAPBOX_STOP_PLACES_STYLE_URL=${{ secrets.TROMS_NEXT_PUBLIC_MAPBOX_STOP_PLACES_STYLE_URL }}