added midi-data rpc (#264) #133
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: Push Docker Hub | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- published | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Get Release Tags | |
id: get_release_tags | |
run: | | |
echo "RELEASE_TAG=$(echo ${GITHUB_REF} | sed -E 's/.*v?([0-9]+)\.([0-9]+)\.([0-9]+)?/\1.\2.\3,\1.\2,\1/')" >> $GITHUB_ENV | |
echo "TAG=latest" >> $GITHUB_ENV | |
if: github.event_name == 'release' | |
- name: Get Push Tags | |
id: get_push_tags | |
run: | | |
echo "RELEASE_TAG=$(echo ${GITHUB_REF:11})" >> $GITHUB_ENV | |
echo "TAG=nightly" >> $GITHUB_ENV | |
if: github.event_name == 'push' | |
- name: Publish to Docker Hub | |
uses: elgohr/Publish-Docker-Github-Action@v4 | |
with: | |
name: netsblox/services | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
tags: "${{ env.TAG }},${{ env.RELEASE_TAG }}" |