Skip to content

Commit

Permalink
Merge pull request #708 from werf/ci-use-enterprise-runners
Browse files Browse the repository at this point in the history
ci: use enterprise runners
  • Loading branch information
z9r5 authored Jan 9, 2024
2 parents 4cff95b + 7911882 commit 5b1e32e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ env:
jobs:
cleanup:
name: Cleanup
runs-on: self-hosted
runs-on: ubuntu-latest-4-cores
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow

- name: Cleanup
uses: werf/actions/[email protected]
with:
kube-config-base64-data: ${{ secrets.KUBECONFIG_BASE64_PROD }}
env:
WERF_LOG_VERBOSE: "on"
WERF_REPO_GITHUB_TOKEN: ${{ secrets.REGISTRY_CLEANUP_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/content_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: werf/actions/[email protected]

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Task
uses: arduino/setup-task@v1
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
uses: werf/actions/[email protected]

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Task
uses: arduino/setup-task@v1
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
converge:
name: Deploy
if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'test website') || contains(github.event.pull_request.labels.*.name, 'stage website')
runs-on: self-hosted
runs-on: ubuntu-latest-4-cores
steps:

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -37,8 +37,8 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'test website')
with:
env: test
kube-config-base64-data: ${{ secrets.KUBECONFIG_BASE64_DEV }}
env:
WERF_KUBE_CONTEXT: dev
WERF_NAMESPACE: "werfio-test"
WERF_RELEASE: "werfio-site-test"
WERF_LOG_VERBOSE: "on"
Expand All @@ -48,8 +48,8 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'stage website')
with:
env: stage
kube-config-base64-data: ${{ secrets.KUBECONFIG_BASE64_DEV }}
env:
WERF_KUBE_CONTEXT: dev
WERF_NAMESPACE: "werfio-stage"
WERF_RELEASE: "werfio-site-stage"
WERF_LOG_VERBOSE: "on"
Expand All @@ -59,8 +59,8 @@ jobs:
if: github.ref == 'refs/heads/main'
with:
env: production
kube-config-base64-data: ${{ secrets.KUBECONFIG_BASE64_PROD }}
env:
WERF_KUBE_CONTEXT: prod
WERF_NAMESPACE: "werfio-production"
WERF_RELEASE: "werfio-site-production"
WERF_LOG_VERBOSE: "on"
Expand All @@ -69,7 +69,7 @@ jobs:
name: Notification
if: always()
needs: converge
runs-on: ubuntu-latest
runs-on: ubuntu-latest-4-cores
steps:

- uses: technote-space/workflow-conclusion-action@v2
Expand Down

0 comments on commit 5b1e32e

Please sign in to comment.