-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from xiaods/dev
feat: Add qiniu oss artifactory repo
- Loading branch information
Showing
2 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
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
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 . |
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
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: | ||
|
||
|
@@ -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 }} | ||
|