diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2025-08-13 22:05:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-13 22:05:33 +0200 |
| commit | 2e3582e15bae895185e84adc95f26304a279baa1 (patch) | |
| tree | 599bfc2faa39f7321e3e98923f48fcf0d7f31b8a /.github | |
| parent | eb44f49c8283ffeb0652f777c3ff169ff5c7e21d (diff) | |
Changed GH action to publish images from the preview branch
The preview branch will be used to deploy the preview server.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/docker-publish.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f95dc1fe..16408f6f 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -2,7 +2,7 @@ name: Create and publish a Docker image on: push: - branches: ["main"] + branches: ["main", "preview"] env: REGISTRY: ghcr.io @@ -31,9 +31,9 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - flavor: | - latest=true tags: | + # set latest tag for main branch only + type=raw,value=latest,enable=main type=ref,event=branch type=sha |
