Minimum instance version (for deployment) #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: On-Release Image Build to Supervisely Docker | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
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: true | |
swap-storage: true | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Echo ${{ github.event.release.tag_name }} | |
run: echo ${{ github.event.release.tag_name }} | |
- name: Write Tag to ENV variable | |
run: echo "LABEL_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME_COMMUNITY }} | |
password: ${{ secrets.DOCKER_TOKEN_COMMUNITY }} | |
- name: Login to Docker Supervisely Enterprise | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ secrets.DOCKER_ENTERPRISE_REGISTRY }} | |
username: ${{ secrets.DOCKER_USERNAME_ENTERPRISE }} | |
password: ${{ secrets.DOCKER_PASSWORD_ENTERPRISE }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./ | |
file: ./Dockerfile | |
provenance: false | |
builder: ${{ steps.buildx.outputs.name }} | |
push: true | |
tags: | | |
supervisely/geometry-validator:${{ env.LABEL_VERSION }} | |
${{ secrets.DOCKER_ENTERPRISE_REGISTRY }}/supervisely-enterprise/ecosystem-apps/geometry-validator:${{ env.LABEL_VERSION }} | |
cache-from: type=registry,ref=supervisely/geometry-validator:cache | |
cache-to: type=registry,ref=supervisely/geometry-validator:cache,mode=max |