Skip to content

Commit

Permalink
fix: remove "v" from docker version tag (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Radek Ježek <[email protected]>
  • Loading branch information
jezekra1 authored Oct 17, 2024
1 parent 3dbe8bb commit e02d2a7
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/publish-release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@ on:
types: [released, prereleased]

jobs:
docker:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push

- name: Extract version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Build and push bee-ui local image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
Expand All @@ -31,4 +35,8 @@ jobs:
NEXT_PUBLIC_FEATURE_FLAGS='{ "Knowledge": false, "Files": true, "FunctionTools": true, "Observe": true }'
NEXT_PUBLIC_ORGANIZATION_ID_DEFAULT=org_670cc04869ddffe24f4fd70d
NEXT_PUBLIC_PROJECT_ID_DEFAULT=proj_670cc04869ddffe24f4fd70f
tags: iambeeagent/bee-ui-local:${{ github.event.release.tag_name }}
tags: |
iambeeagent/bee-ui-local:latest
iambeeagent/bee-ui-local:${{ steps.get_version.outputs.VERSION }}
cache-from: type=registry,ref=iambeeagent/bee-ui-local:buildcache
cache-to: type=registry,ref=iambeeagent/bee-ui-local:buildcache,mode=max

0 comments on commit e02d2a7

Please sign in to comment.