Skip to content

Commit 5919dcb

Browse files
committed
Docker setup check
Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
1 parent 4e9492e commit 5919dcb

File tree

4 files changed

+136
-115
lines changed

4 files changed

+136
-115
lines changed

.github/workflows/docker.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Check Docker
16+
run: docker version
17+
18+
- name: Check Docker compose
19+
run: |
20+
docker compose version
21+
docker-compose version

.github/workflows/main.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
name: Main Workflow
1+
# name: Main Workflow
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
10-
schedule:
11-
- cron: "*/60 * * * *"
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
# pull_request:
8+
# branches:
9+
# - main
10+
# schedule:
11+
# - cron: "*/60 * * * *"
1212

13-
jobs:
14-
main:
15-
uses: ./.github/workflows/shared_steps.yml
16-
secrets: inherit
17-
with:
18-
branch: main
13+
# jobs:
14+
# main:
15+
# uses: ./.github/workflows/shared_steps.yml
16+
# secrets: inherit
17+
# with:
18+
# branch: main

.github/workflows/release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
name: Release Workflow
1+
# name: Release Workflow
22

3-
on:
4-
push:
5-
branches:
6-
- try_cron
7-
pull_request:
8-
branches:
9-
- try_cron
10-
schedule:
11-
- cron: "*/60 * * * *"
3+
# on:
4+
# push:
5+
# branches:
6+
# - try_cron
7+
# pull_request:
8+
# branches:
9+
# - try_cron
10+
# schedule:
11+
# - cron: "*/60 * * * *"
1212

13-
jobs:
14-
try_cron:
15-
uses: ./.github/workflows/shared_steps.yml
16-
secrets: inherit
17-
with:
18-
branch: try_cron
13+
# jobs:
14+
# try_cron:
15+
# uses: ./.github/workflows/shared_steps.yml
16+
# secrets: inherit
17+
# with:
18+
# branch: try_cron

.github/workflows/shared_steps.yml

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,98 @@
1-
name: Shared Steps
1+
# name: Shared Steps
22

3-
on:
4-
workflow_call:
5-
inputs:
6-
branch:
7-
required: true
8-
type: string
3+
# on:
4+
# workflow_call:
5+
# inputs:
6+
# branch:
7+
# required: true
8+
# type: string
99

10-
jobs:
11-
unit-test:
12-
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
node-version: [16, 18]
16-
steps:
17-
- name: Checkout for nightly CI
18-
if: github.event_name == 'schedule'
19-
uses: actions/checkout@v3
20-
with:
21-
ref: ${{ inputs.branch }}
10+
# jobs:
11+
# unit-test:
12+
# runs-on: ubuntu-latest
13+
# strategy:
14+
# matrix:
15+
# node-version: [16, 18]
16+
# steps:
17+
# - name: Checkout for nightly CI
18+
# if: github.event_name == 'schedule'
19+
# uses: actions/checkout@v3
20+
# with:
21+
# ref: ${{ inputs.branch }}
2222

23-
- name: Checkout
24-
if: github.event_name != 'schedule'
25-
uses: actions/checkout@v3
23+
# - name: Checkout
24+
# if: github.event_name != 'schedule'
25+
# uses: actions/checkout@v3
2626

27-
- name: Get branch name
28-
run: |
29-
echo "Branch name from trigger: ${{ inputs.branch }}"
27+
# - name: Get branch name
28+
# run: |
29+
# echo "Branch name from trigger: ${{ inputs.branch }}"
3030

31-
- name: Install node required
32-
uses: actions/setup-node@v3
33-
with:
34-
node-version: ${{ matrix.node-version }}
31+
# - name: Install node required
32+
# uses: actions/setup-node@v3
33+
# with:
34+
# node-version: ${{ matrix.node-version }}
3535

36-
- name: Install dependencies
37-
run: npm ci
36+
# - name: Install dependencies
37+
# run: npm ci
3838

39-
- name: run hello.js
40-
run: |
41-
node ./hello.js
39+
# - name: run hello.js
40+
# run: |
41+
# node ./hello.js
4242

43-
api-test:
44-
runs-on: ubuntu-latest
45-
strategy:
46-
matrix:
47-
node-version: [16, 18]
48-
steps:
49-
- name: Checkout for nightly CI
50-
if: github.event_name == 'schedule'
51-
uses: actions/checkout@v3
52-
with:
53-
ref: ${{ inputs.branch }}
43+
# api-test:
44+
# runs-on: ubuntu-latest
45+
# strategy:
46+
# matrix:
47+
# node-version: [16, 18]
48+
# steps:
49+
# - name: Checkout for nightly CI
50+
# if: github.event_name == 'schedule'
51+
# uses: actions/checkout@v3
52+
# with:
53+
# ref: ${{ inputs.branch }}
5454

55-
- name: Checkout
56-
if: github.event_name != 'schedule'
57-
uses: actions/checkout@v3
55+
# - name: Checkout
56+
# if: github.event_name != 'schedule'
57+
# uses: actions/checkout@v3
5858

59-
- name: Get branch name
60-
run: |
61-
echo "Branch name from trigger: ${{ inputs.branch }}"
59+
# - name: Get branch name
60+
# run: |
61+
# echo "Branch name from trigger: ${{ inputs.branch }}"
6262

63-
- name: Install node required
64-
uses: actions/setup-node@v3
65-
with:
66-
node-version: ${{ matrix.node-version }}
63+
# - name: Install node required
64+
# uses: actions/setup-node@v3
65+
# with:
66+
# node-version: ${{ matrix.node-version }}
6767

68-
- name: Install dependencies
69-
run: npm ci
68+
# - name: Install dependencies
69+
# run: npm ci
7070

71-
- name: run hello.js
72-
run: |
73-
node ./hello.js
71+
# - name: run hello.js
72+
# run: |
73+
# node ./hello.js
7474

75-
notify:
76-
needs:
77-
- unit-test
78-
- api-test
79-
# if: ${{ always() && github.event_name == 'schedule' }}
80-
if: ${{ always() }}
81-
runs-on: ubuntu-latest
82-
steps:
83-
- name: checkout
84-
uses: actions/checkout@v2
85-
with:
86-
ref: main
75+
# notify:
76+
# needs:
77+
# - unit-test
78+
# - api-test
79+
# # if: ${{ always() && github.event_name == 'schedule' }}
80+
# if: ${{ always() }}
81+
# runs-on: ubuntu-latest
82+
# steps:
83+
# - name: checkout
84+
# uses: actions/checkout@v2
85+
# with:
86+
# ref: main
8787

88-
- name: Step 2
89-
env:
90-
ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }}
91-
ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }}
92-
NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }}
93-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94-
REPO_OWNER: ${{ github.actor }}
95-
REPO_NAME: ${{ github.event.repository.name }}
96-
RUN_ID: ${{ github.run_id }}
97-
BRANCH_NAME: ${{ inputs.branch }}
98-
run: ./.github/scripts/notify.sh
88+
# - name: Step 2
89+
# env:
90+
# ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }}
91+
# ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }}
92+
# NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }}
93+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
# REPO_OWNER: ${{ github.actor }}
95+
# REPO_NAME: ${{ github.event.repository.name }}
96+
# RUN_ID: ${{ github.run_id }}
97+
# BRANCH_NAME: ${{ inputs.branch }}
98+
# run: ./.github/scripts/notify.sh

0 commit comments

Comments
 (0)