add akis crab node #13
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
name: Release | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
DOCKER_REGISTRY: ghcr.io | |
jobs: | |
release-fishnet: | |
name: Release fishnet | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Build fishnet | |
run: | | |
cd analysis/fishnet | |
cargo build --release | |
- name: Docker login | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
registry: ${{ env.DOCKER_REGISTRY }} | |
- name: Tag | |
uses: olegtarasov/[email protected] | |
- name: Sha | |
uses: benjlevesque/[email protected] | |
- name: Publish docker image hash | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: . | |
file: .maintain/docker/fishnet.Dockerfile | |
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/fishnet:sha-${{ env.SHA }} | |
- name: Publish docker image tag | |
uses: docker/build-push-action@v3 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
push: true | |
context: . | |
file: .maintain/docker/dashboard.Dockerfile | |
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/fishnet:${{ env.GIT_TAG_NAME }} | |
release-dashboard: | |
name: Release dashboard | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Build dashboard | |
run: | | |
cd analysis/dashboard | |
yarn install | |
yarn build:prod | |
- name: Docker login | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
registry: ${{ env.DOCKER_REGISTRY }} | |
- name: Tag | |
uses: olegtarasov/[email protected] | |
- name: Sha | |
uses: benjlevesque/[email protected] | |
- name: Publish docker image hash | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: . | |
file: .maintain/docker/dashboard.Dockerfile | |
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/dashboard:sha-${{ env.SHA }} | |
- name: Publish docker image tag | |
uses: docker/build-push-action@v3 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
push: true | |
context: . | |
file: .maintain/docker/dashboard.Dockerfile | |
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/dashboard:${{ env.GIT_TAG_NAME }} |