Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
Push to Docker Hub with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudiuGeorgiu committed Jan 8, 2022
1 parent 8ec1353 commit 58a74a9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,35 @@ jobs:
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false

publish:
# Run only if the previous job succeeds (only master branch or new tags, no pull requests).
if: (endsWith(github.ref, '/master') || startsWith(github.ref, 'refs/tags/v')) && contains(github.event_name, 'pull_request') == false
needs: test
name: Push updated version to Docker Hub
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: claudiugeorgiu
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: claudiugeorgiu/playstore-downloader
tags: |
type=raw,value=latest
type=semver,pattern={{version}}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Docker version 20.10.7, build f0df350
#### Official Docker Hub image

The [official PlaystoreDownloader Docker image](https://hub.docker.com/r/claudiugeorgiu/playstore-downloader)
is available on Docker Hub:
is available on Docker Hub (automatically built from this repository):

```Shell
$ # Download the Docker image.
Expand Down

0 comments on commit 58a74a9

Please sign in to comment.