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:
12
12
docker run --rm --name rn-env react-native-community/react-native bin/sh -c "npx envinfo"
13
13
14
14
jobs :
15
- test :
16
- << : *defaults
17
- steps :
18
- - checkout
19
- - run : *build-docker
20
15
21
16
deploy :
22
17
<< : *defaults
@@ -34,4 +29,7 @@ workflows:
34
29
version : 2
35
30
main :
36
31
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;
3
3
function publishDocker ( ) {
4
4
const now = new Date ( )
5
5
const repo = `reactnativecommunity/react-native-android`
6
- const finaltag = `${ now . getFullYear ( ) } -${ now . getMonth ( ) + 1 } -${ now . getDate ( ) } `
7
6
const cmd = `
8
7
docker 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 }
12
9
`
13
10
cmd . trim ( ) . split ( "\n" ) . map ( i => {
14
11
const cmd = i . trim ( ) ;
You can’t perform that action at this time.
0 commit comments