config: bump shellhub version to v0.15.0-rc.1 #243
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: 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 }} |