Skip to content

Update docker-image.yml #1

Update docker-image.yml

Update docker-image.yml #1

Workflow file for this run

name: NodeJS Docker Demo
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
IMAGE_NAME: sajigeorgejoe/my_node_app
IMAGE_TAG: github
jobs:
build_image:
steps:

Check failure on line 16 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / NodeJS Docker Demo

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 16, Col: 5): Required property is missing: runs-on
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3.2.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6.0.1
with:
context: .
file: ./Dockerfile
push: true
tags: $IMAGE_NAME:$IMAGE_TAG