Skip to content

i30 add series type #28

i30 add series type

i30 add series type #28

Workflow file for this run

name: 🚒 Docker
on:
push:
branches:
- main
pull_request:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docker:
name: 🚒 Docker
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: βŽ” Setup node
uses: actions/setup-node@v4
- name: πŸ“₯ Install deps
run: npm install --frozen-lockfile
- name: πŸ”¨ Build image
run: ./scripts/build
- name: πŸ”₯ Smoke test
run: ./scripts/smoke-test
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: 🚒 Push image
run: ./scripts/push
- id: sha
name: Setup Environment
shell: bash
run: |
if [[ -v "GITHUB_SHA" ]]; then
GIT_SHA=${GITHUB_SHA:0:7}
else
GIT_SHA=$(git rev-parse --short=7 HEAD)
fi
echo "GIT_SHA=${GIT_SHA}" >> $GITHUB_OUTPUT
- name: Deploy the app
uses: digitalocean/app_action/deploy@v2
env:
IMAGE_TAG_SEROVIZ: ${{ steps.sha.outputs.GIT_SHA }}
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
app_name: seroviz
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'