Skip to content

Create publish-website-monitor-docker-image.yml #1

Create publish-website-monitor-docker-image.yml

Create publish-website-monitor-docker-image.yml #1

name: Website Monitor - Publish Docker Image
on:
push:
branches: [ "main" ]
jobs:
push_to_registry:
name: Push Docker Image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }

Check failure on line 18 in .github/workflows/publish-website-monitor-docker-image.yml

View workflow run for this annotation

GitHub Actions / Website Monitor - Publish Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/publish-website-monitor-docker-image.yml (Line: 18, Col: 21): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ninjaasa/influxdb-getting-started-website-monitor
- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}