Skip to content

Use ubuntu latest

Use ubuntu latest #2

name: Publish Dockerfile
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |

Check failure on line 28 in .github/workflows/publish_dockerfile.yaml

View workflow run for this annotation

GitHub Actions / Publish Dockerfile

Invalid workflow file

The workflow is not valid. .github/workflows/publish_dockerfile.yaml (Line: 28, Col: 17): Unexpected symbol: ':8'. Located at position 12 within expression: github.sha[:8]
${{ secrets.DOCKERHUB_USERNAME }}/photon:latest
${{ secrets.DOCKERHUB_USERNAME }}/photon:${{ github.sha[:8] }}