1- name : Docker Image CI
1+ name : Build and Push Docker Images
22
33on :
4- workflow_dispatch :
4+ push :
5+ branches :
6+ - main
7+ - master
8+ tags :
9+ - ' v*'
10+ workflow_dispatch : # Allows manual trigger from the GitHub Actions tab
511
612env :
713 REGISTRY : ghcr.io
814 IMAGE_NAME : ${{ github.repository }}
915
1016jobs :
11- build_and_push :
17+ build-and-push-docmost :
1218 runs-on : ubuntu-latest
1319 permissions :
1420 contents : read
1521 packages : write
22+
1623 steps :
1724 - name : Checkout repository
1825 uses : actions/checkout@v6
1926
20- - name : Log in to GitHub Container Registry
27+ - name : Log in to the Container registry
2128 uses : docker/login-action@v4
2229 with :
2330 registry : ${{ env.REGISTRY }}
2431 username : ${{ github.actor }}
2532 password : ${{ secrets.GITHUB_TOKEN }}
2633
2734 - name : Set up QEMU
28- # QEMU enables emulation for multi-platform builds
2935 uses : docker/setup-qemu-action@v4
3036
3137 - name : Set up Docker Buildx
32- # Buildx is a Docker component that enables multi-platform builds
3338 uses : docker/setup-buildx-action@v4
3439
35- - name : Extract metadata
40+ - name : Extract metadata for Docmost
3641 id : meta
3742 uses : docker/metadata-action@v6
3843 with :
@@ -43,10 +48,10 @@ jobs:
4348 type=semver,pattern={{version}}
4449 type=semver,pattern={{major}}.{{minor}}
4550
46- - name : Build and push Docker image
51+ - name : Build and push Docmost image
4752 uses : docker/build-push-action@v7
4853 with :
49- context : . # Directory of the Dockerfile (defaults to repo root)
54+ context : .
5055 push : true
5156 tags : ${{ steps.meta.outputs.tags }}
5257 labels : ${{ steps.meta.outputs.labels }}
0 commit comments