File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,6 @@ aliases:
1212 docker run --rm --name rn-env react-native-community/react-native bin/sh -c "npx envinfo"
1313
1414jobs :
15- test :
16- << : *defaults
17- steps :
18- - checkout
19- - run : *build-docker
2015
2116 deploy :
2217 << : *defaults
@@ -34,4 +29,7 @@ workflows:
3429 version : 2
3530 main :
3631 jobs :
37- - test
32+ - deploy :
33+ filters :
34+ branches :
35+ only : master
Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ const execSync = require("child_process").execSync;
33function publishDocker ( ) {
44 const now = new Date ( )
55 const repo = `reactnativecommunity/react-native-android`
6- const finaltag = `${ now . getFullYear ( ) } -${ now . getMonth ( ) + 1 } -${ now . getDate ( ) } `
76 const cmd = `
87docker login -u ${ process . env . DOCKER_USER } -p ${ process . env . DOCKER_PASS }
9- docker build -t ${ repo } :${ finaltag } .
10- docker tag ${ repo } :${ finaltag } ${ repo }
11- docker push ${ repo } :${ finaltag }
8+ docker push ${ repo }
129 `
1310 cmd . trim ( ) . split ( "\n" ) . map ( i => {
1411 const cmd = i . trim ( ) ;
You can’t perform that action at this time.
0 commit comments