Skip to content

Commit

Permalink
Merge pull request #317 from sohosai/feature/official-runner
Browse files Browse the repository at this point in the history
公式のrunnerを使うように変更
  • Loading branch information
Till0196 authored Jun 14, 2024
2 parents 92ec70b + f022ce1 commit 88bc923
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cd-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: CD(beta)
run-name: CD(beta) - ${{ github.event_name }}

on:
# pull_request:
# branches:
# - develop
# types:
# - closed
# pull_request:
# branches:
# - develop
# types:
# - closed

workflow_dispatch:
inputs:
Expand All @@ -24,7 +24,7 @@ on:
jobs:
push-image:
if: github.event.pull_request.merged == true || github.event.inputs.deploy-only == 'false'
runs-on: [self-hosted, garm]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
cache-to: type=gha,mode=max

deploy:
runs-on: [self-hosted, garm]
runs-on: ubuntu-latest
needs: push-image
if: |
(github.event.pull_request.merged == true && always() && !failure() && !cancelled()) ||
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
VERIFY_SSL: "true"

notify:
runs-on: [self-hosted, garm]
runs-on: ubuntu-latest
needs: [push-image, deploy]
if: always() && !cancelled()
steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cd-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
jobs:
push-image:
if: github.event.pull_request.merged == true || github.event.inputs.deploy-only == 'false'
runs-on: [self-hosted, garm]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
cache-to: type=gha,mode=max

deploy:
runs-on: [self-hosted, garm]
runs-on: ubuntu-latest
needs: push-image
if: |
(github.event.pull_request.merged == true && always() && !failure() && !cancelled()) ||
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
VERIFY_SSL: "true"

notify:
runs-on: [self-hosted, garm]
runs-on: ubuntu-latest
needs: [push-image, deploy]
if: always() && !cancelled()
steps:
Expand All @@ -146,4 +146,4 @@ jobs:
color: 0x0000ff
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
username: GitHub Actions
avatar_url: https://r2.sohosai.com/logo.png
avatar_url: https://r2.sohosai.com/logo.png
8 changes: 4 additions & 4 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
jobs:
push-image:
if: github.event.pull_request.merged == true || github.event.inputs.deploy-only == 'false'
runs-on: [self-hosted, garm]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -71,8 +71,8 @@ jobs:
cache-to: type=gha,mode=max

deploy:
runs-on: [self-hosted, garm]
needs: push-image
runs-on: ubuntu-latest
if: |
(github.event.pull_request.merged == true && always() && !failure() && !cancelled()) ||
(github.event.inputs.push-image-only == 'false' && always() && !failure() && !cancelled())
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
rm .env"
notify:
runs-on: [self-hosted, garm]
runs-on: ubuntu-latest
needs: [push-image, deploy]
if: always() && !cancelled()
steps:
Expand All @@ -144,4 +144,4 @@ jobs:
color: 0x0000ff
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
username: GitHub Actions
avatar_url: https://r2.sohosai.com/logo.png
avatar_url: https://r2.sohosai.com/logo.png
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: [self-hosted, garm]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Symlink
Expand Down

0 comments on commit 88bc923

Please sign in to comment.