Skip to content

Fix website directory trigger #1

Fix website directory trigger

Fix website directory trigger #1

name: Docker Image CI

Check failure on line 1 in .github/workflows/publish_website_docker_image.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish_website_docker_image.yaml

Invalid workflow file

`worfklow_dispatch` is not a valid event name
on:
push:
paths:
- Dockerfile
- 'website/**'
worfklow_dispatch:
jobs:
build:
env:
DOCKERIMAGE: docker.io/playtechnique/website:${{ github.run_number }}
runs-on: ubuntu-latest
steps:
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PAT }}
- name: Build and Publish the Docker image
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ env.DOCKERIMAGE }}
- name: what is the docker image
run: |
echo ${{ env.DOCKERIMAGE }}