-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Derek Wang <[email protected]>
- Loading branch information
Showing
1 changed file
with
5 additions
and
22 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 |
---|---|---|
|
@@ -2,11 +2,8 @@ name: release | |
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
branches: | ||
- main | ||
- dev-release* | ||
- release-1.3 | ||
|
||
defaults: | ||
run: | ||
|
@@ -142,11 +139,11 @@ jobs: | |
if [ $tag = "main" ]; then | ||
tag="latest" | ||
fi | ||
echo "VERSION=$tag" >> $GITHUB_OUTPUT | ||
echo "VERSION=v1.3.1" >> $GITHUB_OUTPUT | ||
- name: Container build and push with arm64/amd64 | ||
run: | | ||
IMAGE_NAMESPACE=${{ secrets.QUAYIO_ORG }} VERSION=${{ steps.version.outputs.VERSION }} DOCKER_PUSH=true make image-multi | ||
IMAGE_NAMESPACE=${{ secrets.QUAYIO_ORG }} VERSION=v1.3.1 DOCKER_PUSH=true make image-multi | ||
Bom: | ||
runs-on: ubuntu-latest | ||
|
@@ -168,7 +165,7 @@ jobs: | |
- run: go install github.com/spdx/spdx-sbom-generator/cmd/[email protected] | ||
- run: mkdir -p dist | ||
- run: generator -o /tmp -p . | ||
- run: bom generate --image quay.io/numaproj/numaflow:$VERSION -o /tmp/numaflow.spdx | ||
- run: bom generate --image quay.io/numaproj/numaflow:v1.3.1 -o /tmp/numaflow.spdx | ||
# pack the boms into one file to make it easy to download | ||
- run: cd /tmp && tar -zcf sbom.tar.gz *.spdx | ||
- uses: actions/upload-artifact@v3 | ||
|
@@ -215,7 +212,7 @@ jobs: | |
|
||
- name: Get digests of container images | ||
run: | | ||
echo "IMAGE_DIGEST=$(crane digest quay.io/numaproj/numaflow:$VERSION)" >> $GITHUB_ENV | ||
echo "IMAGE_DIGEST=$(crane digest quay.io/numaproj/numaflow:v1.3.1)" >> $GITHUB_ENV | ||
- name: Sign Numaflow container images and assets | ||
run: | | ||
cosign sign --key env://COSIGN_PRIVATE_KEY quay.io/numaproj/numaflow@${{ env.IMAGE_DIGEST }} | ||
|
@@ -227,17 +224,3 @@ jobs: | |
COSIGN_PRIVATE_KEY: ${{secrets.COSIGN_PRIVATE_KEY}} | ||
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}} | ||
|
||
- name: Release binaries | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
dist/*.gz | ||
dist/numaflow-checksums.txt | ||
dist/numaflow-checksums.sig | ||
dist/numaflow-cosign.pub | ||
config/*.yaml | ||
/tmp/sbom.tar.gz | ||
/tmp/sbom.tar.gz.sig | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |