Skip to content

Commit

Permalink
ops: faster ci button?
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Mar 5, 2024
1 parent 3c96eab commit aa41450
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 58 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/chat-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- '.github/workflows/**'
jobs:
build-test:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204|
steps:
- uses: actions/checkout@v2
- name: Setting up
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Running lint
run: yarn --cwd chat build
eslint:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204|
steps:
- uses: actions/checkout@v2
- name: Setting up
Expand Down
103 changes: 51 additions & 52 deletions .github/workflows/push-server.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,52 @@
name: Create Docker Images
on:
workflow_call:
secrets:
DOCKER_USERNAME:
required: true
DOCKER_PASSWORD:
required: true
workflow_dispatch:
push:
branches:
- 'main'

jobs:
build_server:
name: Building Server Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Setup buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
arguflow/search
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
cache-from: type=gha
cache-to: type=gha,mode=max
context: server/
file: ./server/Dockerfile.no-ocr
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# on:
# workflow_call:
# secrets:
# DOCKER_USERNAME:
# required: true
# DOCKER_PASSWORD:
# required: true
# workflow_dispatch:
# push:
# branches:
# - 'main'
#
# jobs:
# build_server:
# name: Building Server Docker Image
# steps:
# - name: Checkout the repo
# uses: actions/checkout@v4
#
# - name: Setup buildx
# uses: docker/setup-buildx-action@v3
#
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
#
# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# # list of Docker images to use as base name for tags
# images: |
# arguflow/search
# tags: |
# type=schedule
# type=ref,event=branch
# type=ref,event=pr
# type=sha
#
# - name: Build and push Docker image
# uses: docker/build-push-action@v5
# with:
# cache-from: type=gha
# cache-to: type=gha,mode=max
# context: server/
# file: ./server/Dockerfile.no-ocr
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
4 changes: 2 additions & 2 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- '.github/workflows/**'
jobs:
clippy_check:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v1
- run: rustup component add clippy
Expand All @@ -20,7 +20,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
args: --features runtime-env --manifest-path server/Cargo.toml
redoc:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2
- name: Installing Vaccum
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/search-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- '.github/workflows/**'
jobs:
build-test:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204|
steps:
- uses: actions/checkout@v2
- name: Setting up
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Running lint
run: yarn --cwd search build
eslint:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204|
steps:
- uses: actions/checkout@v2
- name: Setting up
Expand Down

0 comments on commit aa41450

Please sign in to comment.