1
0
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:
2025-09-02 20:10:10 +00:00
parent 59dfa061e0
commit 7b8f78064c
2 changed files with 51 additions and 30 deletions
+5 -30
View File
@@ -1,33 +1,10 @@
name: "CI pipeline"
on:
push:
branches: [ "main" ]
paths-ignore:
- '.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'
release:
types:
- published
workflow_dispatch:
inputs:
push:
type: boolean
required: false
default: false
description: "Push to Docker Hub"
jobs:
build:
@@ -52,17 +29,15 @@ jobs:
ghcr.io/${{ github.repository }}
tags: |
latest
${{steps.package_json.outputs.version}}
${{ steps.package_json.outputs.version }}
- name: "Login to Docker Hub"
if: github.event_name != 'pull_request' || github.event.inputs.push == 'true'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: "Login to GitHub Container Registry"
if: github.event_name != 'pull_request' || github.event.inputs.push == 'true'
uses: docker/login-action@v3
with:
registry: ghcr.io
@@ -76,5 +51,5 @@ jobs:
SIGNALR_URL=https://ezlog.app/api/comms
ENDPOINT_URL=https://ezlog.app/api/send
COMMIT=${{ github.sha }}
push: ${{ github.event_name != 'pull_request' || github.event.inputs.push == 'true' }}
push: true
tags: ${{ steps.meta.outputs.tags }}