Merge branch 'release/3.0' of github.com:TarsCloud/Tars into release/3.0 #60
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: deploy-tars-docker | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: docker login | |
run: | | |
docker login -u ${{ secrets.name }} -p ${{ secrets.pass }} | |
- name: Get version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: deploy docker | |
run: | | |
echo $GITHUB_SHA | |
./tars-deploy-tars.sh ${{ steps.get_version.outputs.VERSION }} true |