From 5fc4875b35de7c8867e2df3e61d9ff200b1f19d5 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 5 Nov 2023 17:15:43 +0100 Subject: [PATCH] Publish dev docker images --- .github/workflows/push_image.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index 7d5512a..f72a249 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - '*-dev' env: REGISTRY: ghcr.io @@ -60,9 +61,10 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=raw,value={{date 'YYYYMMDD'}}-{{sha}} - type=raw,value={{date 'YYYYMMDD'}} - type=raw,value=latest + type=raw,value={{branch}}-{{date 'YYYYMMDD'}}-{{sha}},enable=${{ github.ref != format('refs/heads/{0}', 'main') }} + type=raw,value={{date 'YYYYMMDD'}}-{{sha}},enable={{is_default_branch}} + type=raw,value={{date 'YYYYMMDD'}},enable={{is_default_branch}} + type=raw,value=latest,enable={{is_default_branch}} - name: Log into registry ${{ env.REGISTRY }} uses: docker/login-action@v2.1.0