Skip to content

Commit 78e3cf1

Browse files
committed
chore: cicd workflow 수정
- 도커 권한 부여 step 추가 - 기존 ci에서 push 옵션 삭제
1 parent b6d7ac5 commit 78e3cf1

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

.github/workflows/CD.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ jobs:
88
build-and-push:
99
runs-on: ubuntu-latest
1010

11-
services:
12-
redis:
13-
image: redis
14-
ports:
15-
- 6379:6379
16-
1711
env:
1812
DB_URL: ${{ secrets.DB_URL }}
1913
DB_USERNAME: ${{ secrets.DB_USERNAME }}
@@ -43,6 +37,12 @@ jobs:
4337
ELASTIC_PASSWORD: ${{ secrets.ELASTIC_PASSWORD }}
4438
LOKI_URL: ${{ secrets.LOKI_URL }}
4539

40+
services:
41+
redis:
42+
image: redis
43+
ports:
44+
- 6379:6379
45+
4646
steps:
4747
- name: Github Repository 파일 불러오기
4848
uses: actions/checkout@v4
@@ -65,6 +65,10 @@ jobs:
6565
restore-keys: |
6666
${{ runner.os }}-gradle-
6767
68+
- name: Docker 권한 설정
69+
run: |
70+
sudo chmod 666 /var/run/docker.sock
71+
6872
- name: 빌드 권한 부여
6973
run: chmod +x ./gradlew
7074
shell: bash

.github/workflows/CI.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: CI Pipeline
22

33
on:
4-
push:
5-
branches:
6-
[ main ]
74
pull_request:
85
branches:
96
[ main ]
@@ -14,14 +11,6 @@ jobs:
1411
Continuous-Integration:
1512
runs-on: ubuntu-latest
1613

17-
#Action 환경에서 Redis 실행을 위한 설정 추후 서버 배포시 제거 예정
18-
services:
19-
redis:
20-
image: redis
21-
ports:
22-
- 6379:6379
23-
24-
2514
env:
2615
DB_URL: ${{ secrets.DB_URL }}
2716
DB_USERNAME: ${{ secrets.DB_USERNAME }}
@@ -51,6 +40,11 @@ jobs:
5140
ELASTIC_PASSWORD: ${{ secrets.ELASTIC_PASSWORD }}
5241
LOKI_URL: ${{ secrets.LOKI_URL }}
5342

43+
services:
44+
redis:
45+
image: redis
46+
ports:
47+
- 6379:6379
5448

5549
steps:
5650
- name: Github Repository 파일 불러오기
@@ -81,6 +75,10 @@ jobs:
8175
key: ${{ runner.os }}-sonar
8276
restore-keys: ${{ runner.os }}-sonar
8377

78+
- name: Docker 권한 설정
79+
run: |
80+
sudo chmod 666 /var/run/docker.sock
81+
8482
- name: 빌드 권한 부여
8583
run: chmod +x ./gradlew
8684
shell: bash

0 commit comments

Comments
 (0)