Skip to content

Commit

Permalink
Merge pull request #5 from f41gh7/develop
Browse files Browse the repository at this point in the history
changed gh workflow
  • Loading branch information
f41gh7 authored May 11, 2020
2 parents 7949676 + eb0cde4 commit ffd1975
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ jobs:

- name: Run Unit tests.
run: make test
#
# - name: Upload Coverage report to CodeCov
# uses: codecov/codecov-action@v1.0.0
# with:
# token: ${{secrets.CODECOV_TOKEN}}
# file: ./coverage.txt

build:
name: Build
Expand Down Expand Up @@ -64,4 +58,5 @@ jobs:
password: ${{secrets.REPO_KEY}}
registry: "quay.io"
tag_with_ref: true
repository: f41gh7/vcd-csi
dockerfile: cmd/provisioner/Dockerfile
29 changes: 23 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release
on:
create:
tags:
- v*
release:
types:
- created

jobs:
release:
Expand All @@ -20,6 +20,7 @@ jobs:
run: |
make build
echo "version: $$VERSION"
zip -r bundle.zip deploy/
- name: build docker
uses: docker/build-push-action@v1
Expand All @@ -28,11 +29,27 @@ jobs:
password: ${{secrets.REPO_KEY}}
registry: "quay.io"
tag_with_ref: true
repository: f41gh7/vcd-csi
dockerfile: cmd/provisioner/Dockerfile

- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bundle.zip
asset_name: bundle_crd.zip
asset_content_type: application/zip

- name: Upload Release binary
id: upload-release-binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'vcd-csi'
upload_url: ${{ github.event.release.upload_url }}
asset_path: vcd-csi
asset_name: vcd-csi
asset_content_type: binary/octet-stream

0 comments on commit ffd1975

Please sign in to comment.