Skip to content

chore: bump shellhub version to v0.14.1 #239

chore: bump shellhub version to v0.14.1

chore: bump shellhub version to v0.14.1 #239

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, connector]
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Get release version
id: get_version
run: echo RELEASE_VERSION=$(echo ${GITHUB_REF:10}) >> $GITHUB_ENV
- name: Set docker build args
if: matrix.project == 'connector'
run: echo "BUILD_ARGS=SHELLHUB_VERSION=${{ env.RELEASE_VERSION }}" >> $GITHUB_ENV
- name: Build and publish '${{ matrix.project }}' to Docker Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: shellhubio/${{ matrix.project }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ env.RELEASE_VERSION }}"
dockerfile: ${{ matrix.project }}/Dockerfile
buildargs: ${{ env.BUILD_ARGS }}