Skip to content

Commit

Permalink
[test] ci/cd test
Browse files Browse the repository at this point in the history
  • Loading branch information
edder773 committed Nov 14, 2024
1 parent 57a21b7 commit 2362b92
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- test

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -52,11 +53,5 @@ jobs:
echo "Removing existing container..."
docker rm myapp || true
echo "Writing .env file to apps/backend..."
mkdir -p apps/backend
cat <<EOF > apps/backend/.env
${{ secrets.ENV_FILE }}
EOF
echo "Running new container..."
docker run -d --name myapp -p 3000:3000 -p 8080:8080 ${{ secrets.DOCKER_HUB_USERNAME }}/myapp:latest
docker run -d --name myapp -p 3000:3000 -p 8080:8080 --env-file /root/src/config/.env ${{ secrets.DOCKER_HUB_USERNAME }}/myapp:latest

0 comments on commit 2362b92

Please sign in to comment.