Use gh tool (#106)

* use gh tool instead of third party gh action

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

* Fix checksum

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

* Add GH_TOKEN env

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

---------

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
Hussein Galal
2024-06-21 23:56:43 +03:00
committed by GitHub
parent 3879912b57
commit bf72d39280
4 changed files with 27 additions and 8 deletions

View File

@@ -3,6 +3,9 @@ on:
tags:
- "chart-*"
env:
GH_TOKEN: ${{ github.token }}
name: Chart
permissions:
contents: write
@@ -19,10 +22,8 @@ jobs:
make package-chart;
- name: Release Chart
uses: softprops/action-gh-release@v2
with:
files: |
deploy/*
run: |
gh release upload ${{ github.ref_name }} deploy/*
- name: Index Chart
run: |

View File

@@ -3,6 +3,9 @@ on:
tags:
- "v*"
env:
GH_TOKEN: ${{ github.token }}
name: Release
permissions:
contents: write
@@ -28,10 +31,8 @@ jobs:
secret/data/github/repo/${{ github.repository }}/dockerhub/${{ github.repository_owner }}/credentials password | DOCKER_PASSWORD ;
- name: release binaries
uses: softprops/action-gh-release@v2
with:
files: |
bin/*
run: |
gh release upload ${{ github.ref_name }} bin/*
- name: Login to Container Registry
uses: docker/login-action@v3

16
ops/checksum Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -ex
cd $(dirname $0)/..
CHECKSUM_DIR=${CHECKSUM_DIR:-./bin}
sumfile="${CHECKSUM_DIR}/sha256sum.txt"
echo -n "" > "${sumfile}"
files=$(ls ${CHECKSUM_DIR} | grep -v "sha256sum.txt")
for file in ${files}; do
sha256sum "${CHECKSUM_DIR}/${file}" | sed "s;$(dirname ${CHECKSUM_DIR}/${file})/;;g" >> "${sumfile}"
done
cat "${sumfile}"

1
ops/ci
View File

@@ -4,6 +4,7 @@ set -e
cd $(dirname $0)
./build
./checksum
./test
./validate
./validate-ci