-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
064e934
commit 5838354
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Docker Build and Test | ||
|
||
on: | ||
- pull_request | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Create envfile | ||
uses: SpicyPizza/[email protected] | ||
with: | ||
envkey_BOT_USER_ACCESS_TOKEN: ${{ secrets.BOT_USER_ACCESS_TOKEN }} | ||
envkey_CHANNEL: ${{ secrets.CHANNEL }} | ||
envkey_NUTMEG_MYSQL_DBNAME: ${{ secrets.NUTMEG_MYSQL_DBNAME }} | ||
envkey_NUTMEG_MYSQL_HOST: ${{ secrets.NUTMEG_MYSQL_HOST }} | ||
envkey_NUTMEG_MYSQL_PASSWORD: ${{ secrets.NUTMEG_MYSQL_PASSWORD }} | ||
envkey_NUTMEG_MYSQL_USERNAME: ${{ secrets.NUTMEG_MYSQL_USERNAME }} | ||
envkey_RAILS_ENV: ${{ secrets.RAILS_ENV }} | ||
envkey_RAILS_LOG_TO_STDOUT: ${{ secrets.RAILS_LOG_TO_STDOUT }} | ||
envkey_RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} | ||
envkey_VUE_APP_API_URL: ${{ secrets.VUE_APP_API_URL }} | ||
envkey_VUE_APP_URL: ${{ secrets.VUE_APP_URL }} | ||
envkey_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} | ||
file_name: group-manager-2.env | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build Docker image | ||
run: docker compose -f docker-compose.prod.yml build | ||
|
||
- name: install admin_view | ||
run: docker compose -f docker-compose.prod.yml run --rm admin_view npm i | ||
|
||
- name: install user_front | ||
run: docker compose -f docker-compose.prod.yml run --rm user_front npm i | ||
|
||
- name: Build admin_view | ||
run: docker compose -f docker-compose.prod.yml run --rm admin_view npm run build | ||
|
||
- name: Build user_front | ||
run: docker compose -f docker-compose.prod.yml run --rm user_front npm run build |