자기 자신에게 보내는거 프론트상에서도 제한 #21
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: Productions | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: main | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build and push Docker images | |
env: | |
VITE_DISCORD_CLIENT_ID: ${{ secrets.VITE_DISCORD_CLIENT_ID }} | |
VITE_DISCORD_CLIENT_SECRET: ${{ secrets.VITE_DISCORD_CLIENT_SECRET }} | |
VITE_DISCORD_OAUTH2_URL: ${{ secrets.VITE_DISCORD_OAUTH2_URL }} | |
VITE_API_URL: ${{ secrets.VITE_API_URL }} | |
run: | | |
docker compose -f docker-compose.yaml build | |
- name: Run Docker Compose | |
env: | |
VITE_DISCORD_CLIENT_ID: ${{ secrets.VITE_DISCORD_CLIENT_ID }} | |
VITE_DISCORD_CLIENT_SECRET: ${{ secrets.VITE_DISCORD_CLIENT_SECRET }} | |
VITE_DISCORD_OAUTH2_URL: ${{ secrets.VITE_DISCORD_OAUTH2_URL }} | |
VITE_API_URL: ${{ secrets.VITE_API_URL }} | |
run: | | |
docker compose -f docker-compose.yaml up -d |