mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-05-16 14:16:45 +00:00
trying new approach
This commit is contained in:
50
.github/workflows/release.yml
vendored
Normal file
50
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- my-temp-release-check
|
||||
# - develop
|
||||
# - master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get base image name
|
||||
shell: bash
|
||||
run: |
|
||||
echo "##[set-output name=cal_ver;]$(echo $(date +'%Y.%m.%d'))"
|
||||
echo "##[set-output name=build_time_utc;]$(echo $(date -u))"
|
||||
echo "##[set-output name=build_timestamp;]$(echo $(date +%s))"
|
||||
id: version_parameters
|
||||
- name: Build CLI
|
||||
run: cd cli && make build-all CAL_VER=${steps.version_parameters.outputs.cal_ver} BUILD_TIME_UTC=${steps.version_parameters.outputs.build_time_utc} BUILD_TIMESTAMP=${steps.version_parameters.outputs.build_timestamp}
|
||||
- uses: ncipollo/release-action@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
artifacts: "cli/bin/**/"
|
||||
commit: my-temp-release-check
|
||||
tag: v0.0.1
|
||||
|
||||
#name: release
|
||||
#on:
|
||||
# push:
|
||||
# branches:
|
||||
# - feature/har_file_names
|
||||
## - 'develop'
|
||||
## - 'main'
|
||||
#jobs:
|
||||
# docker:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v2
|
||||
# - name: Set up Cloud SDK
|
||||
# uses: google-github-actions/setup-gcloud@master
|
||||
# with:
|
||||
# service_account_key: ${{ secrets.GCR_JSON_KEY }}
|
||||
# export_default_credentials: true
|
||||
# - name: Build and Push CLI
|
||||
# run: make push-cli
|
||||
Reference in New Issue
Block a user