Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ on:
types: [published]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
publish_to_dockerhub:
name: Publish to Docker Hub
runs-on: ubuntu-20.04
env:
DOCKER_IMAGE: reactnativecommunity/react-native-android
if: ${{ startsWith(github.ref, 'refs/tags/v*') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
Expand All @@ -24,12 +22,14 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Prepare tags
env:
DOCKER_IMAGE: reactnativecommunity/react-native-android
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
- name: Build & publish to Docker Hub
uses: docker/build-push-action@v2
with:
push: true
Expand Down