1 parent
f665fcbb54
commit
148182c680
66 files changed
+11271
No files matched your search
@@ -0,0 +1,34 @@
|
||||
name: Release Docker Image
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Gitea
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars._CI_REGISTRY }}
|
||||
username: ${{ vars._CI_REGISTRY_USER }}
|
||||
password: ${{ secrets._CI_REGISTRY_ACCESS_TOKEN }}
|
||||
|
||||
# Remarks: Setting up QEMU and Buildx are useful for cross-platform build but it will slow the CI pipeline.
|
||||
|
||||
# - name: Set up QEMU
|
||||
# uses: docker/setup-qemu-action@v3
|
||||
|
||||
# - name: Set up Docker Buildx
|
||||
# uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
secrets: JIG_SOFTWARE_GITEA_DEPLOYMENT_TOKEN=${{ secrets._CI_REGISTRY_ACCESS_TOKEN }}
|
||||
push: true
|
||||
tags: ${{ vars._CI_REGISTRY }}/${{ gitea.repository }}:${{ gitea.ref_name }},${{ vars._CI_REGISTRY }}/${{ gitea.repository }}:latest
|
||||
@@ -0,0 +1,27 @@
|
||||
name: Test
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .gitea/workflows/test.yaml
|
||||
- src/**/*
|
||||
- test/**/*
|
||||
- .mocharc.js
|
||||
- tsconfig.json
|
||||
- package.json
|
||||
- .yarnrc.yml
|
||||
- yarn.lock
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:lts
|
||||
env:
|
||||
JIG_SOFTWARE_GITEA_DEPLOYMENT_TOKEN: ${{ secrets._CI_REGISTRY_ACCESS_TOKEN }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install packages
|
||||
run: corepack enable && yarn
|
||||
- name: Test code
|
||||
run: yarn test:coverage
|
||||
Reference in new issue
Block a user