Skip to content

Commit 8f3514a

Browse files
authored
fix publish to docker hub (#96)
1 parent 72f15dd commit 8f3514a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ on:
44
types: [published]
55

66
jobs:
7-
push_to_registry:
8-
name: Push Docker image to Docker Hub
7+
publish_to_dockerhub:
8+
name: Publish to Docker Hub
99
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') }}
1311
steps:
1412
- name: Check out the repo
1513
uses: actions/checkout@v2
@@ -24,12 +22,14 @@ jobs:
2422
password: ${{ secrets.DOCKER_PASSWORD }}
2523

2624
- name: Prepare tags
25+
env:
26+
DOCKER_IMAGE: reactnativecommunity/react-native-android
2727
id: tags
2828
run: |
2929
VERSION=${GITHUB_REF#refs/tags/v}
3030
echo ::set-output name=tags::"${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest"
3131
32-
- name: Push to Docker Hub
32+
- name: Build & publish to Docker Hub
3333
uses: docker/build-push-action@v2
3434
with:
3535
push: true

0 commit comments

Comments
 (0)