File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed
src/main/java/fi/hsl/transitdata/pubtransredisconnect Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 59
59
name : hsldevcom/transitdata-cache-bootstrapper
60
60
username : ${{ secrets.DOCKER_USERNAME }}
61
61
password : ${{ secrets.DOCKER_PASSWORD }}
62
- tag_semver : true
62
+ tag_semver : true
63
+ build-aks-dev-docker-image :
64
+ needs : test
65
+ runs-on : ubuntu-latest
66
+ # Run only on aks-dev branch
67
+ if : github.ref == 'refs/heads/aks-dev'
68
+ steps :
69
+ - uses : actions/checkout@v2
70
+ - name : Download .jar file
71
+ uses : actions/download-artifact@v2
72
+ with :
73
+ name : transitdata-cache-bootstrapper.jar
74
+ path : target
75
+ - name : Build and publish aks-dev Docker image
76
+ uses : elgohr/Publish-Docker-Github-Action@master
77
+ with :
78
+ name : hsldevcom/transitdata-cache-bootstrapper
79
+ username : ${{ secrets.DOCKER_USERNAME }}
80
+ password : ${{ secrets.DOCKER_PASSWORD }}
81
+ tags : aks-dev
Original file line number Diff line number Diff line change @@ -160,9 +160,7 @@ public static void main(String[] args) {
160
160
161
161
try {
162
162
//Default path is what works with Docker out-of-the-box. Override with a local file if needed
163
- final String secretFilePath = ConfigUtils .getEnv ("FILEPATH_CONNECTION_STRING" ).orElse ("/run/secrets/pubtrans_community_conn_string" );
164
- connectionString = new Scanner (new File (secretFilePath ))
165
- .useDelimiter ("\\ Z" ).next ();
163
+ connectionString = System .getenv ("TRANSITDATA_PUBTRANS_CONN_STRING" );
166
164
} catch (Exception e ) {
167
165
log .error ("Failed to read the DB connection string from the file" , e );
168
166
}
You can’t perform that action at this time.
0 commit comments