Skip to content

update dockerfile

update dockerfile #2

name: Publish docker image to DockerHub
on:
push:
branches:
- main
paths-ignore:
- README.md
- .github/**
jobs:
publish:
name: Publish to DockerHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: true
tags:
- "${{ secrets.DOCKERHUB_USERNAME }}/dotfiles:latest"

Check failure on line 27 in .github/workflows/dockerhub-publish.yaml

View workflow run for this annotation

GitHub Actions / Publish docker image to DockerHub

Invalid workflow file

The workflow is not valid. .github/workflows/dockerhub-publish.yaml (Line: 27, Col: 13): A sequence was not expected
- "${{ secrets.DOCKERHUB_USERNAME }}/dotfiles:${GITHUB_SHA:0:7}"