-
Notifications
You must be signed in to change notification settings - Fork 0
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
Martin Mihálik
committed
May 18, 2024
1 parent
8823cd1
commit fae6df3
Showing
6 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
.github/workflows/deploy.yml → .github/workflows/deploy-test.yml
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
name: deploy | ||
name: Deploy Testing Environment | ||
|
||
on: workflow_dispatch | ||
on: push | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: wshihadeh/docker-deployment-action@v2 | ||
with: | ||
remote_docker_host: [email protected] | ||
ssh_private_key: ${{ secrets.WEBSTROM_DEPLOY_SSH_PRIVATE_KEY }} | ||
ssh_public_key: ${{ secrets.WEBSTROM_DEPLOY_SSH_PUBLIC_KEY }} | ||
stack_file_name: compose.yaml | ||
stack_file_name: deployment/compose-test.yaml | ||
args: up --build --force-recreate --detach |
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
FROM node:18 | ||
|
||
ARG NEXT_PUBLIC_BE_PORT | ||
|
||
WORKDIR /app | ||
|
||
COPY . ./ | ||
COPY . /app | ||
|
||
RUN yarn && yarn build | ||
|
||
|
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,18 @@ | ||
version: "3" | ||
|
||
services: | ||
webstrom-frontend: | ||
build: | ||
context: .. | ||
args: | ||
- NEXT_PUBLIC_BE_PORT=8920 | ||
|
||
image: webstrom-test-frontend | ||
|
||
environment: | ||
- PORT=8921 | ||
- NEXT_PUBLIC_BE_PORT=8920 | ||
|
||
network_mode: host | ||
|
||
restart: always |