-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8ee429
commit 95485e2
Showing
1 changed file
with
38 additions
and
0 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,38 @@ | ||
name: Release initialization/init-server | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'release version' | ||
required: true | ||
jobs: | ||
build: | ||
if: github.actor == 'roshanrags' | ||
name: Release | ||
strategy: | ||
matrix: | ||
include: | ||
- os: 'ubuntu-24.04' | ||
runs-on: 'ubicloud-standard-8' | ||
OOS: linux | ||
ARCH: amd64 | ||
- os: 'ubuntu-24.04' | ||
runs-on: 'ubicloud-standard-8-arm' | ||
OOS: linux | ||
ARCH: arm64 | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- name: echo | ||
run: | | ||
echo revision ${{github.event.inputs.revision}} | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v30 | ||
- name: Cachix | ||
uses: cachix/cachix-action@v15 | ||
with: | ||
name: oyster | ||
authToken: ${{secrets.CACHIX_AUTH_TOKEN}} | ||
- name: build | ||
run: nix build -vL --accept-flake-config github:marlinprotocol/oyster-monorepo/init-server-${{github.event.inputs.version}}#musl.initialization.init-server.default | ||
- name: upload | ||
run: AWS_ACCESS_KEY_ID=${{secrets.AWS_ACCESS_KEY_ID}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} aws s3 cp --endpoint-url ${{secrets.AWS_S3_ENDPOINT}} ./result/bin/oyster-init-server s3://artifacts/oyster/binaries/init-server_${{github.event.inputs.version}}_${{matrix.OOS}}_${{matrix.ARCH}} |