-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed deploy_dev job from deploy-dev.yml workflow
- Loading branch information
Showing
1 changed file
with
17 additions
and
17 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 |
---|---|---|
|
@@ -38,20 +38,20 @@ jobs: | |
docker push $GITHUB_BRANCH_IMAGE | ||
rm -rf .env | ||
deploy_dev: | ||
needs: build_push | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy on DEV server | ||
if: github.ref == 'refs/heads/main' | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.DEV_REMOTE_SERVER_ADDRESS }} | ||
username: ${{ secrets.DEV_SERVER_USERNAME }} | ||
key: ${{ secrets.DEV_REMOTE_SERVER_KEY }} | ||
port: ${{ secrets.DEV_SSH_PORT }} | ||
script: | | ||
docker stop erebrus-frontend || true && docker image rm ghcr.io/netsepio/erebrus-frontend:main | ||
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin | ||
docker pull ghcr.io/netsepio/erebrus-frontend:main | ||
docker run --name="erebrus-frontend" --rm -p 4040:8080 --net=bridge -d ghcr.io/netsepio/erebrus-frontend:main | ||
# deploy_dev: | ||
# needs: build_push | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Deploy on DEV server | ||
# if: github.ref == 'refs/heads/main' | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ secrets.DEV_REMOTE_SERVER_ADDRESS }} | ||
# username: ${{ secrets.DEV_SERVER_USERNAME }} | ||
# key: ${{ secrets.DEV_REMOTE_SERVER_KEY }} | ||
# port: ${{ secrets.DEV_SSH_PORT }} | ||
# script: | | ||
# docker stop erebrus-frontend || true && docker image rm ghcr.io/netsepio/erebrus-frontend:main | ||
# echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin | ||
# docker pull ghcr.io/netsepio/erebrus-frontend:main | ||
# docker run --name="erebrus-frontend" --rm -p 4040:8080 --net=bridge -d ghcr.io/netsepio/erebrus-frontend:main |