File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
types : [published]
5
5
6
6
jobs :
7
- push_to_registry :
8
- name : Push Docker image to Docker Hub
7
+ publish_to_dockerhub :
8
+ name : Publish to Docker Hub
9
9
runs-on : ubuntu-20.04
10
- env :
11
- DOCKER_IMAGE : reactnativecommunity/react-native-android
12
- if : ${{ startsWith(github.ref, 'refs/tags/v*') }}
10
+ if : ${{ startsWith(github.ref, 'refs/tags/v') }}
13
11
steps :
14
12
- name : Check out the repo
15
13
uses : actions/checkout@v2
@@ -24,12 +22,14 @@ jobs:
24
22
password : ${{ secrets.DOCKER_PASSWORD }}
25
23
26
24
- name : Prepare tags
25
+ env :
26
+ DOCKER_IMAGE : reactnativecommunity/react-native-android
27
27
id : tags
28
28
run : |
29
29
VERSION=${GITHUB_REF#refs/tags/v}
30
30
echo ::set-output name=tags::"${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest"
31
31
32
- - name : Push to Docker Hub
32
+ - name : Build & publish to Docker Hub
33
33
uses : docker/build-push-action@v2
34
34
with :
35
35
push : true
You can’t perform that action at this time.
0 commit comments