Skip to content

Publish Release docker image #9

Publish Release docker image

Publish Release docker image #9

Workflow file for this run

name: Publish Release docker image
on:
workflow_dispatch:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
if: github.repository == "zyddnys/manga-image-translator"

Check failure on line 18 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Publish Release docker image

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 18, Col: 13): Unexpected symbol: '"zyddnys/manga-image-translator"'. Located at position 22 within expression: github.repository == "zyddnys/manga-image-translator"
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v2
with:
images: zyddnys/manga-image-translator
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: zyddnys/manga-image-translator