Skip to content

Commit 33a72b6

Browse files
committed
feat(ci): add Docker publish workflow
Adds a GitHub Actions workflow to build and push a multi-architecture Docker image to Docker Hub. Key features: - Triggers on push to the 'develop' branch or manual dispatch. - Builds a multi-arch image for linux/amd64, linux/arm64, and linux/arm/v7. - Caches Docker layers and frontend build artifacts to accelerate builds. - Uses DOCKERHUB_USERNAME secret for the image repository. - The workflow is skipped if required Docker Hub secrets are not defined.
1 parent c18ebde commit 33a72b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
if: secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != ''
10+
if: secrets.DOCKERHUB_USERNAME && secrets.DOCKERHUB_TOKEN
1111
runs-on: ubuntu-latest
1212
steps:
1313
-

0 commit comments

Comments
 (0)