Skip to content

chore: bump shellhub version to v0.22.0-rc.2 #341

chore: bump shellhub version to v0.22.0-rc.2

chore: bump shellhub version to v0.22.0-rc.2 #341

Workflow file for this run

name: docker-publish
on:
push:
tags:
- v*
jobs:
build:
name: Build and publish '${{ matrix.project }}' to Docker Registry
strategy:
fail-fast: true
matrix:
project: [api, ssh, gateway, ui, cli]
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@v6
- name: Get release version
id: get_version
run: echo "RELEASE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and publish '${{ matrix.project }}' to Docker Registry
uses: docker/build-push-action@v6
with:
tags: shellhubio/${{ matrix.project }}:latest,shellhubio/${{ matrix.project }}:${{ env.RELEASE_VERSION }}
push: true
file: ${{ matrix.project }}/Dockerfile
publish-enterprise:
name: Build and publish 'api-enterprise' to Docker Registry
runs-on: ubuntu-24.04
steps:
- name: Checkout shellhub source
uses: actions/checkout@v6
with:
path: shellhub
- name: Checkout cloud source
uses: actions/checkout@v6
with:
repository: shellhub-io/cloud
token: ${{ secrets.CLOUD_REPO_TOKEN }}
ref: ${{ github.ref_name }}
path: cloud
- name: Get release version
run: echo "RELEASE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: registry.infra.ossystems.io
username: ${{ secrets.PORTUS_USERNAME }}
password: ${{ secrets.PORTUS_TOKEN }}
- name: Build and publish 'api-enterprise' to Docker Registry
uses: docker/build-push-action@v6
with:
tags: registry.infra.ossystems.io/shellhub/api-enterprise:latest,registry.infra.ossystems.io/shellhub/api-enterprise:${{ env.RELEASE_VERSION }}
push: true
context: shellhub
file: shellhub/api/Dockerfile
build-args: EDITION=enterprise
build-contexts: cloud-src=./cloud