Skip to content

Automate image publishing #1

Automate image publishing

Automate image publishing #1

name: Docker Hub Image
on:
workflow_dispatch:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Docker Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: powerhome/redis-operator
tags: |

Check failure on line 27 in .github/workflows/dockerhub-image.yaml

View workflow run for this annotation

GitHub Actions / Docker Hub Image

Invalid workflow file

The workflow is not valid. .github/workflows/dockerhub-image.yaml (Line: 27, Col: 9): Unexpected value 'tags'
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix=,suffix=,format=long
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}