Skip to content

Commit 0504aa2

Browse files
committed
wip
1 parent 432bf21 commit 0504aa2

3 files changed

Lines changed: 36 additions & 35 deletions

File tree

.github/workflows/build.yaml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ on:
44
workflow_call:
55

66
jobs:
7-
# ci:
8-
# name: CI
9-
# uses: getdevopspro/github-actions/.github/workflows/pull-request.yml@v4.0.7
10-
# with:
11-
# version-package: package.json
12-
# version-package-lock: package-lock.json
13-
# version-output-format: >-
14-
# {{.Major}}.{{.Minor}}.{{.Patch}}${{ github.ref_name != github.event.repository.default_branch && '-pull-request' || '' }}
15-
# pre-lint-command: NODEAPP_UID=$(id -u) NODEAPP_RESTART_POLICY=no NODEAPP_COMMAND="bash -c 'npm ci --ignore-scripts; npm run lint'" docker compose up nodeapp --force-recreate --remove-orphans --abort-on-container-exit --exit-code-from nodeapp
16-
# pre-test-unit-command: NODEAPP_UID=$(id -u) NODEAPP_RESTART_POLICY=no NODEAPP_COMMAND="bash -c 'npm ci --ignore-scripts; npm run test'" docker compose up nodeapp --force-recreate --remove-orphans --abort-on-container-exit --exit-code-from nodeapp
7+
ci:
8+
name: CI
9+
uses: getdevopspro/github-actions/.github/workflows/build.yml@v6.0.0
10+
with:
11+
version-package: package.json
12+
version-package-lock: package-lock.json
13+
version-output-format: >-
14+
{{.Major}}.{{.Minor}}.{{.Patch}}${{ github.ref_name != github.event.repository.default_branch && '-pull-request' || '' }}
15+
pre-lint-command: NODEAPP_UID=$(id -u) NODEAPP_RESTART_POLICY=no NODEAPP_COMMAND="bash -c 'npm ci --ignore-scripts; npm run lint'" docker compose up nodeapp --force-recreate --remove-orphans --abort-on-container-exit --exit-code-from nodeapp
16+
pre-test-unit-command: NODEAPP_UID=$(id -u) NODEAPP_RESTART_POLICY=no NODEAPP_COMMAND="bash -c 'npm ci --ignore-scripts; npm run test'" docker compose up nodeapp --force-recreate --remove-orphans --abort-on-container-exit --exit-code-from nodeapp
1717

18-
test:
19-
name: Test
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: getdevopspro/github-actions/buildx-bake/promote@v5.0.0
23-
with:
24-
registry-password: ${{ secrets.GITHUB_TOKEN }}
25-
version: 0.0.1-test
26-
image-digests: |
27-
[
28-
{
29-
"name": "ghcr.io/getdevopspro/github-actions-nodejs-test",
30-
"digest": "sha256:6988116c59bd02b9751a3db0e117e875c6bef5c5cd1308008992f496f8a93ecb"
31-
}
32-
]
18+
# test:
19+
# name: Test
20+
# runs-on: ubuntu-latest
21+
# steps:
22+
# - uses: getdevopspro/github-actions/buildx-bake/promote@v6.0.0
23+
# with:
24+
# registry-password: ${{ secrets.GITHUB_TOKEN }}
25+
# version: 0.0.1-test
26+
# image-digests: |
27+
# [
28+
# {
29+
# "name": "ghcr.io/getdevopspro/github-actions-nodejs-test",
30+
# "digest": "sha256:6988116c59bd02b9751a3db0e117e875c6bef5c5cd1308008992f496f8a93ecb"
31+
# }
32+
# ]

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ permissions:
1313
packages: write
1414

1515
jobs:
16-
build:
17-
name: Build
16+
ci:
17+
name: CI
1818
uses: ./.github/workflows/build.yaml

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,25 @@ on:
1111
- '**.md'
1212

1313
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: true
14+
group: release-${{ github.workflow }}
15+
cancel-in-progress: false
1616

1717
permissions:
1818
contents: write
1919
packages: write
20-
checks: write
2120

2221
jobs:
23-
build:
24-
name: Build
22+
ci:
23+
name: CI
2524
uses: ./.github/workflows/build.yaml
2625

27-
release:
28-
needs: build
29-
uses: getdevopspro/github-actions/.github/workflows/promote.yml@v5.0.0
26+
promote:
27+
name: Promote
28+
needs: ci
29+
uses: getdevopspro/github-actions/.github/workflows/promote.yml@v6.0.0
3030
with:
3131
version-package: package.json
3232
git-add-files: package.json
3333
git-user-name: getdevopspro-cibot
3434
git-user-email: 203600057+getdevopspro-cibot@users.noreply.github.com
35+
image-digests: ${{ needs.ci.outputs.image-digests }}

0 commit comments

Comments
 (0)