Skip to content

rAPId Release

rAPId Release #2

Workflow file for this run

name: rAPId Release
on:
release:
types: [released]
jobs:
setup:
if: "${{ startsWith(github.event.release.name, 'API: ') }}"
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log commit SHA
run: echo $GITHUB_SHA
api-release:
needs:
- setup
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Populate .env with additional vars
run: |
cp ./.github/.github.env .env
echo AWS_ACCOUNT=${{ secrets.AWS_ACCOUNT }} >> .env
echo AWS_REGION=${{ secrets.AWS_REGION }} >> .env
- name: Build API Image
run: make api-create-image
- name: API Tag and Upload Release Image
run: make api-tag-and-upload-release-image
ui-release:
needs:
- setup
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 19
- name: Install UI Packages
run: make ui-setup
- name: UI Build Static Files
run: make ui-create-static-out
- name: UI Zip and Release
env:
TAG: ${{ github.event.release.tag_name }}
GH_TOKEN: ${{ github.token }}
run: make ui-zip-and-release tag=$TAG
cleanup:
needs:
- setup
- api-release
- ui-release
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Clean Docker Context
if: always()
run: make clean-pipeline-docker-context