Skip to content

Merge pull request #197 from imWildCat/imwildcat-cleanup-gh-actions #3

Merge pull request #197 from imWildCat/imwildcat-cleanup-gh-actions

Merge pull request #197 from imWildCat/imwildcat-cleanup-gh-actions #3

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# Source: https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
name: Publish image to Docker Hub
on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: uses: docker/login-action@v3

Check failure on line 30 in .github/workflows/docker-hub-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-hub-release.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: wildcat/scylla
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}