mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-07-28 17:52:13 +00:00
no message
This commit is contained in:
15
.github/workflows/publish-cli.yml
vendored
15
.github/workflows/publish-cli.yml
vendored
@@ -17,12 +17,18 @@ jobs:
|
||||
service_account_key: ${{ secrets.GCR_JSON_KEY }}
|
||||
export_default_credentials: true
|
||||
|
||||
- uses: haya14busa/action-cond@v1
|
||||
id: condval
|
||||
with:
|
||||
cond: ${{ github.ref == 'refs/heads/main' }}
|
||||
if_true: "patch"
|
||||
if_false: "prepatch"
|
||||
|
||||
- name: Auto Increment Semver Action
|
||||
uses: MCKanpolat/auto-semver-action@1.0.5
|
||||
id: versioning
|
||||
with:
|
||||
releaseType: patch # TODO: should be by branch master=minor other=patch
|
||||
incrementPerCommit: false
|
||||
releaseType: ${{ steps.condval.outputs.value }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Get base image name
|
||||
@@ -34,10 +40,11 @@ jobs:
|
||||
id: version_parameters
|
||||
- name: Build and Push CLI
|
||||
run: make push-cli SEM_VER='${{ steps.versioning.outputs.version }}' BUILD_TIME_UTC='${{ steps.version_parameters.outputs.build_time_utc }}' BUILD_TIMESTAMP='${{ steps.version_parameters.outputs.build_timestamp }}'
|
||||
- if: github.ref == 'refs/heads/main'
|
||||
- name: publish
|
||||
# if: github.ref == 'refs/heads/main'
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
artifacts: "cli/bin/*"
|
||||
commit: ${{ steps.version_parameters.outputs.branch }}
|
||||
tag: ${{ steps.version_parameters.outputs.version }}
|
||||
tag: ${{ steps.versioning.outputs.version }}
|
||||
Reference in New Issue
Block a user