This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
[fix] : 도커 빌드 시 apt-get update에서 url이 잘못되어 빌드가 안되는 에러 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
Build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up sources | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Set up env | |
run: | | |
echo "BOT_NAME=${{ vars.BOT_NAME }}" > .env | |
echo "THEME=${{ vars.THEME }}" >> .env | |
echo "DATABASE_DRIVER=${{ vars.DATABASE_DRIVER }}" >> .env | |
echo "MONGODB_URL=${{ secrets.MONGODB_URL }}" >> .env | |
echo "MONGODB_DATABASE=${{ secrets.MONGODB_DATABASE }}" >> .env | |
echo "SLACK_API_TOKEN=${{ secrets.SLACK_API_TOKEN }}" >> .env | |
echo "SLACK_DAILY_CAP=${{ vars.SLACK_DAILY_CAP }}" >> .env | |
echo "SLACK_EMOJI_INC=${{ vars.SLACK_EMOJI_INC }}" >> .env | |
echo "SLACK_EMOJI_DEC=${{ vars.SLACK_EMOJI_DEC }}" >> .env | |
- name: Type Check | |
run: yarn typecheck | |
- name: Build docker image | |
run: yarn docker-build | |
Test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up sources | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Set up env | |
run: | | |
echo "BOT_NAME=${{ vars.BOT_NAME }}" > .env | |
echo "THEME=${{ vars.THEME }}" >> .env | |
echo "DATABASE_DRIVER=${{ vars.DATABASE_DRIVER }}" >> .env | |
echo "MONGODB_URL=${{ secrets.MONGODB_URL }}" >> .env | |
echo "MONGODB_DATABASE=${{ secrets.MONGODB_DATABASE }}" >> .env | |
echo "SLACK_API_TOKEN=${{ secrets.SLACK_API_TOKEN }}" >> .env | |
echo "SLACK_DAILY_CAP=${{ vars.SLACK_DAILY_CAP }}" >> .env | |
echo "SLACK_EMOJI_INC=${{ vars.SLACK_EMOJI_INC }}" >> .env | |
echo "SLACK_EMOJI_DEC=${{ vars.SLACK_EMOJI_DEC }}" >> .env | |
- name: Test | |
run: yarn test |