Skip to content

Commit

Permalink
chore: ci 파이프라인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dldmsql committed Mar 8, 2023
1 parent aec1413 commit 7c009d7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
mysql database: 'test_db'
mysql user: 'test'
mysql password: 'test_pw'
mysql root password: root
- name: Set for DB
run: |
name=$(docker ps | awk 'NR > 1 {print $1; exit}')
echo $name
# docker exec name /bin/sh -c 'mysql -u root -p root < /script.sql'
shell: bash

#테스트를 위한 redis 설정
- name: Start Redis
Expand Down
15 changes: 15 additions & 0 deletions script.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
SET GLOBAL log_bin_trust_function_creators = 1;

CREATE FUNCTION `strip_tags`($str text) RETURNS text
BEGIN
DECLARE $start, $end INT DEFAULT 1;
LOOP
SET $start = LOCATE('<', $str, $start);
IF (!$start) THEN RETURN $str; END IF;
SET $end = LOCATE('>', $str, $start);
IF (!$end) THEN SET $end = $start; END IF;
SET $str = INSERT($str, $start, $end - $start + 1, "");
END LOOP;
END;

SET GLOBAL log_bin_trust_function_creators = 0;

0 comments on commit 7c009d7

Please sign in to comment.