Skip to content

Update docker_image.yml #4

Update docker_image.yml

Update docker_image.yml #4

Workflow file for this run

name: "Publish to GHCR"
on: [push, workflow_dispatch]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v3

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

View workflow run for this annotation

GitHub Actions / .github/workflows/docker_image.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for the Docker image
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push the Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}