Skip to content

change the core package arg list to minify the input overhead #159

change the core package arg list to minify the input overhead

change the core package arg list to minify the input overhead #159

Workflow file for this run

name: swis-api CI/CD pipeline
on:
workflow_dispatch:
push:
#branches: [ master ]
tags:
- 'v5.*'
jobs:
unit:
runs-on: [ self-hosted, public, docker ]
steps:
- uses: actions/checkout@v4
- name: Run unit/integration tests.
env:
GIN_MODE: test
HOSTNAME: ${{ vars.HOSTNAME }}
run: make unit
build:
runs-on: [ self-hosted, public, docker ]
needs: [ unit ]
steps:
- uses: actions/checkout@v4
- name: Build new swapi image (with staging).
env:
APP_URL: ${{ secrets.APP_URL }}
ROOT_TOKEN: ${{ secrets.ROOT_TOKEN }}
run: make build
test_deploy:
runs-on: [ self-hosted, public, docker ]
needs: [ build ]
steps:
- uses: actions/checkout@v4
- name: Run test container and run end-to-end test on it.
env:
LOKI_URL: ${{ secrets.LOKI_URL }}
GIN_MODE: debug
HOSTNAME: ${{ vars.HOSTNAME }}
run: make test_deploy e2e
dump_data:
runs-on: [ self-hosted, public, docker ]
needs: [ test_deploy ]
steps:
- uses: actions/checkout@v4
- name: Dump production data.
env:
APP_URL: ${{ secrets.APP_URL }}
ROOT_TOKEN: ${{ secrets.ROOT_TOKEN }}
run: make dump
prod_deploy:
runs-on: [ self-hosted, public, docker ]
needs: [ dump_data ]
steps:
- uses: actions/checkout@v4
- name: Deploy prod docker container, recreate container with fresh image.
env:
APP_ENVIRONMENT: production
APP_URL: ${{ secrets.APP_URL }}
LOKI_URL: ${{ secrets.LOKI_URL }}
ROOT_TOKEN: ${{ secrets.ROOT_TOKEN }}
GIN_MODE: ${{ secrets.GIN_MODE }}
CF_BEARER_TOKEN: ${{ secrets.CF_BEARER_TOKEN }}
CF_API_EMAIL: ${{ secrets.CF_API_EMAIL }}
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
run: make run
import_data:
runs-on: [ self-hosted, public, docker ]
needs: [ prod_deploy ]
steps:
- uses: actions/checkout@v4
- name: Import dumped data to production.
env:
APP_URL: ${{ secrets.APP_URL }}
ROOT_TOKEN: ${{ secrets.ROOT_TOKEN }}
run: make import_dump
generate_docs:
runs-on: [ self-hosted, public, docker ]
needs: [ import_data ]
steps:
- uses: actions/checkout@v4
- name: (re)Generate interface API swagger docs.
env:
APP_URL: ${{ secrets.APP_URL }}
run: make docs