Skip to content
Snippets Groups Projects
Unverified Commit f4192b28 authored by Dulmandakh's avatar Dulmandakh Committed by GitHub
Browse files

publish release to Docker Hub (#94)

parent 4cbbab3b
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,9 @@ jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-20.04
env:
DOCKER_IMAGE: reactnativecommunity/react-native-android
if: ${{ startsWith(github.ref, 'refs/tags/v*') }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
......@@ -20,10 +23,14 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Prepare tags
id: tags
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo ::set-output name=tags::"${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest"
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
push: true
tags: |
reactnativecommunity/react-native-android:latest
reactnativecommunity/react-native-android:${{ GITHUB_REF }}
tags: ${{ steps.tags.outputs.tags }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment