Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Mismatch Finder to Production #926

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Update deploy-app-staging.yml
hasanakg authored Apr 16, 2024
commit aa76d8f8071412d957dab31f8a32ab0238a43774
15 changes: 3 additions & 12 deletions .github/workflows/deploy-app-staging.yml
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ jobs:
- name: Syncing code to Toolforge-Staging
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
host: ${{ secrets.HOST_ALT }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
@@ -46,22 +46,13 @@ jobs:
rm: true

- name: Deploy code
uses: appleboy/ssh-action@v1.0.2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
host: ${{ secrets.HOST_ALT }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
script: |
echo $PATH
echo "$PWD"
hostname
# become mismatch-finder-staging rm -rf mismatch-finder-repo-next
# cp -rv mismatch-finder-repo-next/ ~tools.mismatch-finder-staging/
# become mismatch-finder-staging take mismatch-finder-repo-next
# become mismatch-finder-staging cp .env mismatch-finder-repo-next/
# become mismatch-finder-staging mkdir -p mismatch-finder-repo-next/storage/app/allowlist
# become mismatch-finder-staging cp uploaders.txt mismatch-finder-repo-next/storage/app/allowlist/
# Make sure ~tools.mismatch-finder-staging/mismatch-finder-repo-next is group writable
become mismatch-finder-staging chmod -R g+rwx ~tools.mismatch-finder-staging/mismatch-finder-repo-next
# Change group of ~/mismatch-finder-repo-next (including symlinks) to tools.mismatch-finder-staging