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

View File

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

View File

@ -7,13 +7,8 @@ on:
- "package*.json"
- "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:
latestDeploy:
publishmodulemaim:
runs-on: ubuntu-latest
name: Publish npm module
strategy:
@ -53,7 +48,7 @@ jobs:
- name: Install node depencies
run: npm install -d
- name: Build typescript to CJS and ESM
- name: Build typescript
run: npm run build
- name: Publish Package

View File

@ -4,15 +4,10 @@ on:
types:
- 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:
latestDeploy:
publishreleasemodule:
runs-on: ubuntu-latest
name: Publish npm module
name: Publish npm module (release)
strategy:
matrix:
npm_registry:

View File

@ -2,11 +2,6 @@ name: Test module
on:
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:
latestDeploy:
runs-on: ubuntu-latest
@ -14,7 +9,6 @@ jobs:
strategy:
matrix:
node_version:
- "15"
- "16"
- "17"
steps:
@ -30,5 +24,5 @@ jobs:
- name: Install node depencies
run: npm install -d
- name: Build typescript to CJS and ESM
- name: Build typescript
run: npm run build