Skip to content

Commit

Permalink
chore(CI): Use self-hosted runners
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 authored Aug 28, 2023
1 parent ff0bf10 commit 4788362
Showing 1 changed file with 2 additions and 37 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
- "master"
tags:
- "*"
pull_request:
branches:
- "master"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,29 +20,13 @@ on:
jobs:
docker-no_model:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: self-hosted
strategy:
fail-fast: true
max-parallel: 1 # only one job at a time

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: true

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: false

- name: Checkout
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -99,7 +80,7 @@ jobs:

docker:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: self-hosted
strategy:
fail-fast: true
max-parallel: 1 # only one job at a time
Expand Down Expand Up @@ -140,22 +121,6 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: true

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: false

- name: Checkout
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 4788362

Please sign in to comment.