add :edge image tag

This commit is contained in:
henrygd
2025-07-08 20:40:51 -04:00
parent 11c61bcf42
commit 71f081da20
2 changed files with 6 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ name: Make docker images
on: on:
push: push:
tags: tags:
- 'v*' - "v*"
jobs: jobs:
build: build:
@@ -65,12 +65,10 @@ jobs:
with: with:
images: ${{ matrix.image }} images: ${{ matrix.image }}
tags: | tags: |
type=edge,enable=true
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}},enable=${{ !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}},enable=${{ !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }} type=semver,pattern={{major}}
type=raw,value=latest,enable=${{ !contains(github.ref, '-beta') && !contains(github.ref, '-rc') }}
type=raw,value=beta,enable=${{ contains(github.ref, '-beta') }}
type=raw,value=rc,enable=${{ contains(github.ref, '-rc') }}
type=raw,value={{sha}},enable=${{ github.ref_type != 'tag' }} type=raw,value={{sha}},enable=${{ github.ref_type != 'tag' }}
# https://github.com/docker/login-action # https://github.com/docker/login-action
@@ -87,7 +85,7 @@ jobs:
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: '${{ matrix.context }}' context: "${{ matrix.context }}"
file: ${{ matrix.dockerfile }} file: ${{ matrix.dockerfile }}
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
push: ${{ github.ref_type == 'tag' }} push: ${{ github.ref_type == 'tag' }}

View File

@@ -4,7 +4,7 @@ import { copyToClipboard, getHubURL } from "@/lib/utils"
import { i18n } from "@lingui/core" import { i18n } from "@lingui/core"
const isBeta = BESZEL.HUB_VERSION.includes("beta") const isBeta = BESZEL.HUB_VERSION.includes("beta")
const imageTag = isBeta ? ":beta" : "" const imageTag = isBeta ? ":edge" : ""
/** /**
* Get the URL of the script to install the agent. * Get the URL of the script to install the agent.