Skip to content

Commit

Permalink
Create release-init-server.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
roshanrags authored Jan 21, 2025
1 parent c8ee429 commit 95485e2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release-init-server.yml
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}}

0 comments on commit 95485e2

Please sign in to comment.