Skip to content

Commit

Permalink
Merge pull request #9 from xyzuan/dev
Browse files Browse the repository at this point in the history
misc(ci/cd): Use self-hosted runner
  • Loading branch information
xyzuan authored Nov 5, 2024
2 parents acee8a7 + 9c67e23 commit 86f426a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
test:
name: Run Treaty Tests
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -18,7 +18,7 @@ jobs:

- name: Declaring some Global Environtment vars
run: |
echo "PORT=3121" >> $GITHUB_ENV
echo "PORT=4031" >> $GITHUB_ENV
echo "DOMAIN=localhost" >> $GITHUB_ENV
echo "NODE_ENV=dev" >> $GITHUB_ENV
echo "PASSWORD_PEPPER=${{ secrets.PASSWORD_PEPPER }}" >> $GITHUB_ENV
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:

build:
name: Build & Push to GHCR Registry
runs-on: ubuntu-latest
runs-on: self-hosted
needs: test
if: success()
steps:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
serve:
name: Serve Images in Server
runs-on: ubuntu-latest
runs-on: self-hosted
needs: build
if: success()
steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
test:
name: Run Treaty Tests
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -18,7 +18,7 @@ jobs:

- name: Declaring some Global Environtment vars
run: |
echo "PORT=3121" >> $GITHUB_ENV
echo "PORT=4031" >> $GITHUB_ENV
echo "DOMAIN=localhost" >> $GITHUB_ENV
echo "NODE_ENV=dev" >> $GITHUB_ENV
echo "PASSWORD_PEPPER=${{ secrets.PASSWORD_PEPPER }}" >> $GITHUB_ENV
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:

build:
name: Build & Push to GHCR Registry
runs-on: ubuntu-latest
runs-on: self-hosted
needs: test
if: success()
steps:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
serve:
name: Serve Images in Server
runs-on: ubuntu-latest
runs-on: self-hosted
needs: build
if: success()
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
test:
name: Run Treaty Tests
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -18,7 +18,7 @@ jobs:

- name: Declaring some Global Environment vars
run: |
echo "PORT=3121" >> $GITHUB_ENV
echo "PORT=4031" >> $GITHUB_ENV
echo "DOMAIN=localhost" >> $GITHUB_ENV
echo "NODE_ENV=dev" >> $GITHUB_ENV
echo "PASSWORD_PEPPER=${{ secrets.PASSWORD_PEPPER }}" >> $GITHUB_ENV
Expand Down

0 comments on commit 86f426a

Please sign in to comment.