Skip to content

Commit

Permalink
pipeline: update/set self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
mrostamii committed Apr 30, 2024
1 parent 93d7e7f commit 13bf37a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
runs-on: [self-hosted, '${{ vars.RUNNER }}']
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
deploy-to-vercel:
runs-on: ubuntu-latest
runs-on: [self-hosted, '${{ vars.RUNNER }}']
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
deploy:
runs-on: ubuntu-latest
runs-on: [self-hosted, '${{ vars.RUNNER }}']
if: github.ref_name == ${{ github.ref_name }}
steps:
- name: Deploy the service to "${{ github.ref_name }}"
Expand All @@ -37,8 +37,8 @@ jobs:
git fetch && \
git checkout ${{ github.ref_name }} && \
git reset --hard origin/${{ github.ref_name }} && \
docker-compose -f docker-compose.yml pull && \
docker-compose -f docker-compose.yml up -d --build
docker compose -f docker-compose.yml pull && \
docker compose -f docker-compose.yml up -d --build
else
echo "Directory does not exist, aborting script."
exit 1
Expand Down

0 comments on commit 13bf37a

Please sign in to comment.