Merge pull request #372 from tus/k8s-improve

Kubernetes upgrades maintenance
This commit is contained in:
kiloreux 2020-04-16 12:50:59 +01:00 committed by GitHub
commit 9deabf9d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -11,11 +11,11 @@ jobs:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- name: Install Matrix Go - name: Install Matrix Go
uses: actions/setup-go@v1 uses: actions/setup-go@v2-beta
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- name: Checkout code - name: Checkout code
uses: actions/checkout@v1 uses: actions/checkout@v2
- name: Test code - name: Test code
env: env:
GO111MODULE: on GO111MODULE: on
@ -27,11 +27,11 @@ jobs:
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
steps: steps:
- name: Install Go 1.13.1 - name: Install Go 1.13.1
uses: actions/setup-go@v1 uses: actions/setup-go@v2-beta
with: with:
go-version: '1.13.1' go-version: '1.13.1'
- name: Checkout code - name: Checkout code
uses: actions/checkout@v1 uses: actions/checkout@v2
- name: Build TUSD - name: Build TUSD
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
env: env:
@ -44,7 +44,7 @@ jobs:
files: tusd_*.* files: tusd_*.*
env: env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
- uses: azure/container-actions/docker-login@master - uses: azure/docker-login@v1
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}

View File

@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: tusd name: tusd
@ -41,7 +41,7 @@ spec:
selector: selector:
app: tusd app: tusd
--- ---
apiVersion: extensions/v1beta1 apiVersion: networking.k8s.io/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: tusd name: tusd