-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX]: Add nodejs setup for release script (#690)
- Loading branch information
1 parent
ec25b2a
commit eeceb6c
Showing
3 changed files
with
68 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build Release Docker Images | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build and Publish Docker Images | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
images: | ||
- ubuntu22 | ||
- ubuntu20 | ||
- ubi8 | ||
- ubi9 | ||
steps: | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build, tag, and push docker image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
# this label connects the icicle repo with the built package | ||
# See more: https://docs.github.com/en/packages/learn-github-packages/connecting-a-repository-to-a-package | ||
labels: | | ||
org.opencontainers.image.source=https://github.com/ingonyama-zk/icicle | ||
file: ./scripts/release/Dockerfile.${{ matrix.images }} | ||
tags: ghcr.io/ingonyama-zk/icicle-release-${{ matrix.images }}-cuda122:latest | ||
push: true |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ on: | |
jobs: | ||
release: | ||
name: Release | ||
runs-on: [self-hosted, Linux, X64, icicle] | ||
runs-on: [self-hosted, Linux, X64, icicle] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -50,13 +50,17 @@ jobs: | |
git config user.name release-bot | ||
git config user.email [email protected] | ||
cargo workspaces version ${{ inputs.releaseType }} -y --no-individual-tags --no-git-push -m "Bump rust crates' version" | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Bump docs version | ||
id: bump-docs-version | ||
if: inputs.releaseType != 'patch' | ||
working-directory: ./docs | ||
run: | | ||
LATEST_TAG=$(git describe --tags --abbrev=0) | ||
LATEST_VERSION=$LATEST_TAG:0:1 | ||
LATEST_VERSION=${LATEST_TAG:1} | ||
npm install | ||
npm run docusaurus docs:version $LATEST_VERSION | ||
git add --all | ||
git commit -m "Bump docs version" | ||
|
@@ -67,6 +71,12 @@ jobs: | |
run: | | ||
LATEST_TAG=$(git describe --tags --abbrev=0) | ||
gh release create $LATEST_TAG --generate-notes -d --verify-tag -t "Release $LATEST_TAG" | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Upload release tars | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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