Build on tags also

This commit is contained in:
kiloreux 2019-10-02 06:01:42 +01:00
parent ee5d881ad3
commit 10175799e1
1 changed files with 8 additions and 7 deletions

View File

@ -31,9 +31,17 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Build TUSD - name: Build TUSD
if: startsWith(github.ref, 'refs/tags/')
env: env:
GO111MODULE: on GO111MODULE: on
run: ./scripts/build_all.sh run: ./scripts/build_all.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: tusd_*.*
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
- uses: azure/container-actions/docker-login@master - uses: azure/container-actions/docker-login@master
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
@ -49,10 +57,3 @@ jobs:
${{ secrets.KUBECONFIG }} ${{ secrets.KUBECONFIG }}
with: with:
args: set image --record deployment/tusd tusd=tusproject/tusd:$GITHUB_SHA -n tus args: set image --record deployment/tusd tusd=tusproject/tusd:$GITHUB_SHA -n tus
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: tusd_*.*
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}