-
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
Jun 8, 2024
1 parent
c31da00
commit 3817e0e
Showing
6 changed files
with
30 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,19 @@ | ||
version: "3" | ||
|
||
services: | ||
webstrom-frontend: | ||
build: | ||
dockerfile: deployment/Dockerfile | ||
context: .. | ||
args: | ||
- NEXT_PUBLIC_BE_PORT=8920 | ||
|
||
image: webstrom-test-frontend | ||
|
||
environment: | ||
- PORT=8922 | ||
- NEXT_PUBLIC_BE_PORT=8920 | ||
|
||
network_mode: host | ||
|
||
restart: always |