Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/actions/build-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,11 @@ runs:
type=raw,value=${{ inputs.tag-prefix }}-${{ github.run_number }}-a${{ github.run_attempt }}

- name: Build and push
uses: docker/build-push-action@v6
uses: useblacksmith/build-push-action@v2
with:
context: .
file: ${{ inputs.dockerfile }}
push: ${{ inputs.push }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ inputs.platforms }}
cache-from: |
type=gha
cache-to: |
type=gha
platforms: ${{ inputs.platforms }}
16 changes: 8 additions & 8 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

tests:
name: Tests (${{ matrix.name }})
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
strategy:
fail-fast: false
matrix:
Expand All @@ -64,7 +64,7 @@ jobs:

build:
name: Build (${{ matrix.image }})
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
strategy:
fail-fast: false
matrix:
Expand All @@ -80,8 +80,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Setup Blacksmith Builder
uses: useblacksmith/setup-docker-builder@v1

- name: Log in to Container Registry
uses: docker/login-action@v4
Expand All @@ -102,7 +102,7 @@ jobs:
promote-image:
name: Promote Image (${{ matrix.image }})
needs: [build, tests]
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404
if: ${{ inputs.push || (github.ref_protected && github.event_name != 'pull_request') }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
latest: ${{ inputs.latest || false }}

deploy-prod-workflow:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404
needs: promote-image
if: ${{ github.ref_type == 'branch' && github.event_name != 'pull_request' && github.ref_name == 'master' }}
environment: production
Expand All @@ -148,7 +148,7 @@ jobs:
}

deploy-staging:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404
needs: promote-image
if: ${{ github.ref_type == 'branch' && github.event_name != 'pull_request' && github.ref_name == 'develop' }}
environment: staging
Expand All @@ -166,7 +166,7 @@ jobs:
}

deploy-dev:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: promote-image
if: ${{ github.ref_type == 'branch' && github.event_name != 'pull_request' && github.ref_name == 'develop' }}
environment: development
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

# Pre-job to find the latest tag
get-latest-tag:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404
outputs:
latest-tag: ${{ steps.latest-tag.outputs.tag }}
steps:
Expand All @@ -27,7 +27,7 @@ jobs:
regex: '^\d+\.\d+\.\d+$'
releases-only: false

# Delegate building and containerizing to a single workflow.
# Delegate building and containerizing to a single workflow
build-and-containerize:
needs: get-latest-tag
uses: ./.github/workflows/ci-build.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
analyze:
name: Analyze (csharp)
runs-on: 'ubuntu-latest'
runs-on: 'blacksmith-2vcpu-ubuntu-2404'
permissions:
# required for all workflows
security-events: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-cloudflare-proxies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
update-proxies:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404

steps:
- uses: actions/checkout@v6
Expand Down
Loading