Skip to content

Commit

Permalink
Merge pull request #39 from xiaods/dev
Browse files Browse the repository at this point in the history
feat: Add qiniu oss artifactory repo
  • Loading branch information
xiaods authored Feb 9, 2021
2 parents e9987ab + 2af2050 commit 2e5bca3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 7 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build for k8e

on:
push:
branches:
- dev

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: check depends
run: sudo apt-get install -y libseccomp-dev

- name: generate resources
run: make generate

- name: Test
run: go test -v .
25 changes: 18 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Go
name: Go for k8e

on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
branches: [ master ]

jobs:

Expand All @@ -27,8 +25,21 @@ jobs:
- name: generate resources
run: make generate

- name: Test
run: go test -v .

- name: package bin
run: SKIP_VALIDATE=true make

- name: Test
run: go test -v .

- name: Deploy to qiniu
uses: saltbo/[email protected]
with:
driver: qiniu
region: cn-south-1
bucket: k8e
exclude: .cache,test
dist: dist/artifacts
env:
UPTOC_UPLOADER_AK: ${{ secrets.UPTOC_UPLOADER_KEYID }}
UPTOC_UPLOADER_SK: ${{ secrets.UPTOC_UPLOADER_KEYSECRET }}

0 comments on commit 2e5bca3

Please sign in to comment.