File tree Expand file tree Collapse file tree 4 files changed +24
-12
lines changed Expand file tree Collapse file tree 4 files changed +24
-12
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
1
name : Build Docker image
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ paths :
6
+ - Dockerfile
7
+ pull_request :
8
+ paths :
9
+ - Dockerfile
4
10
5
11
jobs :
6
12
build :
Original file line number Diff line number Diff line change 1
- name : Publish Docker image
1
+ name : Publish
2
2
on :
3
- push :
4
- branches :
5
- - master
6
3
release :
7
4
types : [published]
8
5
9
6
jobs :
10
7
push_to_registry :
11
8
name : Push Docker image to Docker Hub
12
- runs-on : ubuntu-latest
9
+ runs-on : ubuntu-20.04
13
10
steps :
14
11
- name : Check out the repo
15
12
uses : actions/checkout@v2
16
- - name : Push to Docker Hub
17
- uses : docker/build-push-action@v1
13
+
14
+ - name : Set up Docker Buildx
15
+ uses : docker/setup-buildx-action@v1
16
+
17
+ - name : Login to DockerHub
18
+ uses : docker/login-action@v1
18
19
with :
19
20
username : ${{ secrets.DOCKER_USERNAME }}
20
21
password : ${{ secrets.DOCKER_PASSWORD }}
21
- repository : reactnativecommunity/react-native-android
22
- tag_with_ref : true
23
- tags : latest
22
+
23
+ - name : Push to Docker Hub
24
+ uses : docker/build-push-action@v2
25
+ with :
26
+ push : true
27
+ tags : |
28
+ reactnativecommunity/react-native-android:latest
29
+ reactnativecommunity/react-native-android:${{ GITHUB_REF }}
Original file line number Diff line number Diff line change 1
1
## Android Docker Image for react native
2
- [ ![ CircleCI ] ( https://circleci .com/gh/ react-native-community/docker-android.svg?style=svg )] ( https://circleci. com/gh/ react-native-community/docker- android )
2
+ [ ![ Publish ] ( https://github .com/react-native-community/docker-android/workflows/Publish/badge .svg?event=release )] ( https://hub.docker. com/r/reactnativecommunity/ react-native-android )
3
3
[ ![ Docker Pulls] ( https://img.shields.io/docker/pulls/reactnativecommunity/react-native-android.svg?maxAge=3600 )] ( https://hub.docker.com/r/reactnativecommunity/react-native-android )
4
4
[ ![ Docker Layers] ( https://images.microbadger.com/badges/image/reactnativecommunity/react-native-android.svg )] ( https://hub.docker.com/r/reactnativecommunity/react-native-android )
5
5
You can’t perform that action at this time.
0 commit comments