Clean Actions file #339

Merged
Sirherobrine23 merged 6 commits from clean_actions into main 2022-04-09 12:09:53 +00:00
5 changed files with 11 additions and 29 deletions

View File

@ -1,4 +1,4 @@
name: Publish latest image name: Publish image
on: on:
push: push:
branches: branches:
@ -11,14 +11,13 @@ on:
- "src/**/*" - "src/**/*"
env: env:
# DOCKERPLATFORM: "linux/amd64,linux/arm64"
DOCKERPLATFORM: "linux/amd64,linux/arm64,linux/arm/v7" DOCKERPLATFORM: "linux/amd64,linux/arm64,linux/arm/v7"
DOCKERIMAGE: "ghcr.io/the-bds-maneger/core" DOCKERIMAGE: "ghcr.io/the-bds-maneger/core"
jobs: jobs:
latestDeploy: devbuild:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Publish latest name: Publish main image
steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v2.4.0
with: with:

View File

@ -1,18 +1,17 @@
name: Publish release image name: Publish image (Release)
on: on:
release: release:
types: types:
- created - created
env: env:
# DOCKERPLATFORM: "linux/amd64,linux/arm64"
DOCKERPLATFORM: "linux/amd64,linux/arm64,linux/arm/v7" DOCKERPLATFORM: "linux/amd64,linux/arm64,linux/arm/v7"
DOCKERIMAGE: "ghcr.io/the-bds-maneger/core" DOCKERIMAGE: "ghcr.io/the-bds-maneger/core"
jobs: jobs:
latestDeploy: publishRelease:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Publish latest name: Publish image
steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v2.4.0
with: with:

View File

@ -7,13 +7,8 @@ on:
- "package*.json" - "package*.json"
- "src/**/*" - "src/**/*"
env:
# DOCKERPLATFORM: "linux/amd64,linux/arm64"
DOCKERPLATFORM: "linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le,linux/s390x"
DOCKERIMAGE: "ghcr.io/the-bds-maneger/core"
jobs: jobs:
latestDeploy: publishmodulemaim:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Publish npm module name: Publish npm module
strategy: strategy:
@ -53,7 +48,7 @@ jobs:
- name: Install node depencies - name: Install node depencies
run: npm install -d run: npm install -d
- name: Build typescript to CJS and ESM - name: Build typescript
run: npm run build run: npm run build
- name: Publish Package - name: Publish Package

View File

@ -4,15 +4,10 @@ on:
types: types:
- created - created
env:
# DOCKERPLATFORM: "linux/amd64,linux/arm64"
DOCKERPLATFORM: "linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le,linux/s390x"
DOCKERIMAGE: "ghcr.io/the-bds-maneger/core"
jobs: jobs:
latestDeploy: publishreleasemodule:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Publish npm module name: Publish npm module (release)
strategy: strategy:
matrix: matrix:
npm_registry: npm_registry:

View File

@ -2,11 +2,6 @@ name: Test module
on: on:
pull_request: pull_request:
env:
# DOCKERPLATFORM: "linux/amd64,linux/arm64"
DOCKERPLATFORM: "linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le,linux/s390x"
DOCKERIMAGE: "ghcr.io/the-bds-maneger/core"
jobs: jobs:
latestDeploy: latestDeploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -14,7 +9,6 @@ jobs:
strategy: strategy:
matrix: matrix:
node_version: node_version:
- "15"
- "16" - "16"
- "17" - "17"
steps: steps:
@ -30,5 +24,5 @@ jobs:
- name: Install node depencies - name: Install node depencies
run: npm install -d run: npm install -d
- name: Build typescript to CJS and ESM - name: Build typescript
run: npm run build run: npm run build