feat: add main branch trigger to Docker workflow

Enhance Docker image creation by automating the process on main branch pushes, reducing manual intervention and ensuring timely updates.
This commit is contained in:
ccbikai
2024-09-18 20:31:20 +08:00
parent e8de6a30da
commit cc223e329b

View File

@@ -1,8 +1,11 @@
# Docker build and push workflow
name: Create and publish a Docker image
# Triggered by workflow_dispatch
on:
push:
branches:
- main
# Triggered by workflow_dispatch
workflow_dispatch:
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.