Skip to content

Commit

Permalink
Update build_image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiPetukhov authored Aug 9, 2024
1 parent 94739c1 commit 0adde98
Showing 1 changed file with 16 additions and 34 deletions.
50 changes: 16 additions & 34 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,23 @@ on:
workflow_dispatch:
inputs:
tag_version:
description: 'Docker Image Tag'
description: 'Docker Image Tag (without "v")'
required: true
type: string
sdk_version:
description: 'Supervisely SDK version (optional) - only needed if SDK is installed from branch'
required: false
type: string
default: ''

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: false
swap-storage: true
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
file: supervisely_integration/docker/Dockerfile
tags: supervisely/segment-anything-hq:${{ github.event.inputs.tag_version }}
docker-build-and-push:
uses: supervisely-ecosystem/workflows/.github/workflows/build_image.yml@master
secrets:
DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}"
DOCKERHUB_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}"
with:
tag_version: ${{ github.event.inputs.tag_version }}
dockerfile_path: supervisely_integration/docker/Dockerfile
image_name: segment-anything-hq # <- optional, if not set, will be equal to repository name
sdk_version: ${{ github.event.inputs.sdk_version }}

0 comments on commit 0adde98

Please sign in to comment.