Build on tags also
This commit is contained in:
parent
ee5d881ad3
commit
10175799e1
|
@ -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 }}
|
|
||||||
|
|
Loading…
Reference in New Issue