mirror of
https://github.com/XFox111/easylogon-web.git
synced 2026-07-02 19:52:45 +03:00
chore(ci): split workflows jobs
This commit is contained in:
@@ -0,0 +1,46 @@
|
|||||||
|
name: Audit pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- '.devcontainer/*'
|
||||||
|
- '.github/*'
|
||||||
|
- '!.github/workflows/audit.yml'
|
||||||
|
- '.vscode/*'
|
||||||
|
- '**.md'
|
||||||
|
- '.env*'
|
||||||
|
- 'LICENSE'
|
||||||
|
- 'COPYING'
|
||||||
|
- '.git*'
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '.devcontainer/*'
|
||||||
|
- '.github/*'
|
||||||
|
- '!.github/workflows/audit.yml'
|
||||||
|
- '.vscode/*'
|
||||||
|
- '**.md'
|
||||||
|
- '.env*'
|
||||||
|
- 'LICENSE'
|
||||||
|
- 'COPYING'
|
||||||
|
- '.git*'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
audit:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: node:24
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- run: yarn install
|
||||||
|
- run: yarn audit
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
tags: "easylogon-web:ci"
|
||||||
@@ -1,33 +1,10 @@
|
|||||||
name: "CI pipeline"
|
name: "CI pipeline"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
branches: [ "main" ]
|
types:
|
||||||
paths-ignore:
|
- published
|
||||||
- '.devcontainer/*'
|
|
||||||
- '.github/*'
|
|
||||||
- '!.github/workflows/ci.yml'
|
|
||||||
- '.vscode/*'
|
|
||||||
- '**.md'
|
|
||||||
- '.env*'
|
|
||||||
- 'COPYING'
|
|
||||||
pull_request:
|
|
||||||
branches: [ "main", "next" ]
|
|
||||||
paths-ignore:
|
|
||||||
- '.devcontainer/*'
|
|
||||||
- '.github/*'
|
|
||||||
- '!.github/workflows/ci.yml'
|
|
||||||
- '.vscode/*'
|
|
||||||
- '**.md'
|
|
||||||
- '.env*'
|
|
||||||
- 'COPYING'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
|
||||||
push:
|
|
||||||
type: boolean
|
|
||||||
required: false
|
|
||||||
default: false
|
|
||||||
description: "Push to Docker Hub"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -52,17 +29,15 @@ jobs:
|
|||||||
ghcr.io/${{ github.repository }}
|
ghcr.io/${{ github.repository }}
|
||||||
tags: |
|
tags: |
|
||||||
latest
|
latest
|
||||||
${{steps.package_json.outputs.version}}
|
${{ steps.package_json.outputs.version }}
|
||||||
|
|
||||||
- name: "Login to Docker Hub"
|
- name: "Login to Docker Hub"
|
||||||
if: github.event_name != 'pull_request' || github.event.inputs.push == 'true'
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: "Login to GitHub Container Registry"
|
- name: "Login to GitHub Container Registry"
|
||||||
if: github.event_name != 'pull_request' || github.event.inputs.push == 'true'
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
@@ -76,5 +51,5 @@ jobs:
|
|||||||
SIGNALR_URL=https://ezlog.app/api/comms
|
SIGNALR_URL=https://ezlog.app/api/comms
|
||||||
ENDPOINT_URL=https://ezlog.app/api/send
|
ENDPOINT_URL=https://ezlog.app/api/send
|
||||||
COMMIT=${{ github.sha }}
|
COMMIT=${{ github.sha }}
|
||||||
push: ${{ github.event_name != 'pull_request' || github.event.inputs.push == 'true' }}
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
Reference in New Issue
Block a user