Skip to content

Commit 98819a7

Browse files
authored
chore: publish snapshot version (#125)
1 parent 0ec15f6 commit 98819a7

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.circleci/config.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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
1414
jobs:
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

publish_docker.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ const execSync = require("child_process").execSync;
33
function 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 =`
87
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}
129
`
1310
cmd.trim().split("\n").map(i => {
1411
const cmd = i.trim();

0 commit comments

Comments
 (0)