Skip to content

Commit

Permalink
chore: update GitHub Actions workflows
Browse files Browse the repository at this point in the history
- Add earthly/actions-setup to releases.yml
- Remove earthly/actions-setup from env/action.yml
- Change runner to "formance-runner" in main.yml
  • Loading branch information
flemzord authored and gfyrag committed Oct 16, 2024
1 parent 1468814 commit f8c3dc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .github/actions/env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ inputs:
runs:
using: composite
steps:
- uses: earthly/actions-setup@v1
with:
github-token: ${{ inputs.token }}
version: "latest"
use-cache: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Dirty:
runs-on: "ubuntu-latest"
runs-on: "formance-runner"
steps:
- uses: 'actions/checkout@v4'
with:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
fi
Tests:
runs-on: "ubuntu-latest"
runs-on: "formance-runner"
steps:
- uses: 'actions/checkout@v4'
with:
Expand All @@ -75,7 +75,7 @@ jobs:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
GoReleaser:
runs-on: "ubuntu-latest"
runs-on: "formance-runner"
if: contains(github.event.pull_request.labels.*.name, 'build-images') || github.ref == 'refs/heads/main' || github.event_name == 'merge_group'
needs:
- Dirty
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Deploy:
runs-on: "ubuntu-latest"
runs-on: "formance-runner"
if: github.ref == 'refs/heads/main'
environment: staging
needs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
- uses: 'actions/checkout@v4'
with:
fetch-depth: 0
- uses: earthly/actions-setup@v1
with:
github-token: ${{ inputs.token }}
version: "latest"
use-cache: true
- name: Setup Env
uses: ./.github/actions/env
with:
Expand Down

0 comments on commit f8c3dc7

Please sign in to comment.