Skip to content

Update docker-image.yml #21

Update docker-image.yml

Update docker-image.yml #21

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build-container:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag lidorlg/demo-devops-node:latest
- name: Login to Docker HUb
run: docker login -u ${{ secrets.DOCKERHUB_USER }} -p ${{ secrets.DOCKERHUB_PASSWORD }

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

View workflow run for this annotation

GitHub Actions / Docker Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 24, Col: 12): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
- name: Push the Docker image
run: docker push lidorlg/demo-devops-node:latest