File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ workflow_call :
5+ outputs :
6+ image-digests :
7+ description : ' The output image digests'
8+ value : ${{ jobs.build.outputs.image-digests }}
9+
10+ jobs :
11+ build :
12+ name : Build
13+ uses : getdevopspro/github-actions/.github/workflows/build.yml@v6.0.1
14+ with :
15+ version-package : package.json
16+ version-package-lock : package-lock.json
17+ version-output-format : >-
18+ {{.Major}}.{{.Minor}}.{{.Patch}}${{ github.ref_name != github.event.repository.default_branch && '-pull-request' || '' }}
19+ 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
20+ 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
21+
22+ # test:
23+ # name: Test
24+ # runs-on: ubuntu-latest
25+ # steps:
26+ # - uses: getdevopspro/github-actions/buildx-bake/promote@v6.0.1
27+ # with:
28+ # registry-password: ${{ secrets.GITHUB_TOKEN }}
29+ # version: 0.0.1-test
30+ # image-digests: |
31+ # [
32+ # {
33+ # "name": "ghcr.io/getdevopspro/github-actions-nodejs-test",
34+ # "digest": "sha256:6988116c59bd02b9751a3db0e117e875c6bef5c5cd1308008992f496f8a93ecb"
35+ # }
36+ # ]
Original file line number Diff line number Diff line change 1- name : PR
1+ # name: PR
22
3- on :
4- pull_request :
5- types : [opened, synchronize, reopened]
3+ # on:
4+ # pull_request:
5+ # types: [opened, synchronize, reopened]
66
7- concurrency :
8- group : ${{ github.workflow }}-${{ github.ref }}-${{ github.job }}
9- cancel-in-progress : true
7+ # concurrency:
8+ # group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }}
9+ # cancel-in-progress: true
1010
11- permissions :
12- contents : read
13- packages : write
11+ # permissions:
12+ # contents: read
13+ # packages: write
1414
15- jobs :
16- ci :
17- name : CI
18- uses : getdevopspro/github-actions/.github/workflows/pull-request.yml@v2.0.0
19- with :
20- version-package : package.json
21- version-package-lock : package-lock.json
22- 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
23- 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
15+ # jobs:
16+ # ci:
17+ # name: CI
18+ # uses: ./.github/workflows/build.yaml
Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- push :
5- branches :
6- - main
7- - master
8- tags :
9- - ' v*'
10- paths-ignore :
11- - ' **.md'
4+ pull_request :
5+ types : [opened, synchronize, reopened]
6+ # on:
7+ # push:
8+ # branches:
9+ # - main
10+ # - master
11+ # tags:
12+ # - 'v*'
13+ # paths-ignore:
14+ # - '**.md'
1215
1316concurrency :
14- group : ${{ github.workflow }} -${{ github.ref }}
15- cancel-in-progress : true
17+ group : release -${{ github.workflow }}
18+ cancel-in-progress : false
1619
1720permissions :
1821 contents : write
1922 packages : write
20- checks : write
2123
2224jobs :
23- release :
24- uses : getdevopspro/github-actions/.github/workflows/promote.yml@v2.0.0
25- # secrets:
26- # checkout-token: ${{ secrets.CHECKOUT_TOKEN }}
25+ ci :
26+ name : CI
27+ uses : ./.github/workflows/build.yaml
28+
29+ promote :
30+ name : CI
31+ needs : ci
32+ uses : getdevopspro/github-actions/.github/workflows/promote.yml@v6.0.1
2733 with :
2834 version-package : package.json
2935 git-add-files : package.json
3036 git-user-name : getdevopspro-cibot
3137 git-user-email : 203600057+getdevopspro-cibot@users.noreply.github.com
38+ image-digests : ${{ needs.ci.outputs.image-digests }}
You can’t perform that action at this time.
0 commit comments