Skip to content

Commit

Permalink
feat: add dev port for container
Browse files Browse the repository at this point in the history
  • Loading branch information
svifty7 committed Nov 14, 2024
1 parent 410f856 commit 4e05269
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ jobs:
name: Update Server
needs: [env, build]
runs-on: ubuntu-latest
env:
CONTAINER_PORT: ${{github.ref_name == 'dev' && '--publish 33066:3306 \' || ''}}
steps:
- uses: appleboy/ssh-action@master
with:
Expand All @@ -74,6 +76,7 @@ jobs:
docker run \
--network ${{needs.env.outputs.NETWORK_NAME}} \
--ip ${{secrets.DOCKER_API_CONTAINER_IP}} \
${{env.CONTAINER_PORT}}
--name ${{needs.env.outputs.CONTAINER_NAME}} \
--network-alias ${{secrets.DOCKER_API_HOST}} \
--restart on-failure \
Expand Down

0 comments on commit 4e05269

Please sign in to comment.