Skip to content

Commit

Permalink
refactor: rename builder-image -> build-image and builder as image na…
Browse files Browse the repository at this point in the history
…me to dashcore-ci-runner
  • Loading branch information
PastaPastaPasta committed Aug 6, 2024
1 parent dc5764b commit bd56cd4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ env:
FAST_MODE: false

jobs:
builder-image:
name: Builder Image
build-image:
name: Build Image
runs-on: ubuntu-20.04
outputs:
image-tag: ${{ steps.prepare.outputs.image-tag }}
Expand Down Expand Up @@ -48,22 +48,22 @@ jobs:
file: ./contrib/containers/ci/Dockerfile
push: true
tags: |
ghcr.io/${{ steps.prepare.outputs.repo-name }}/builder:${{ steps.prepare.outputs.image-tag }}
ghcr.io/${{ steps.prepare.outputs.repo-name }}/builder:latest
cache-from: type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo-name }}/builder:latest
ghcr.io/${{ steps.prepare.outputs.repo-name }}/dashcore-ci-runner:${{ steps.prepare.outputs.image-tag }}
ghcr.io/${{ steps.prepare.outputs.repo-name }}/dashcore-ci-runner:latest
cache-from: type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo-name }}/dashcore-ci-runner:latest
cache-to: type=inline

build-depends:
name: Build Dependencies
needs: builder-image
needs: build-image
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- build_target: arm-linux
host: arm-linux-gnueabihf
container:
image: ghcr.io/${{ needs.builder-image.outputs.repo-name }}/builder:${{ needs.builder-image.outputs.image-tag }}
image: ghcr.io/${{ needs.build-image.outputs.repo-name }}/dashcore-ci-runner:${{ needs.build-image.outputs.image-tag }}
options: --user root
steps:
- name: Checkout code
Expand All @@ -88,7 +88,7 @@ jobs:

build:
name: Build
needs: [builder-image, build-depends]
needs: [build-image, build-depends]
runs-on: ubuntu-20.04
strategy:
matrix:
Expand All @@ -97,7 +97,7 @@ jobs:
host: arm-linux-gnueabihf
dep_opts: DEBUG=1
container:
image: ghcr.io/${{ needs.builder-image.outputs.repo-name }}/builder:${{ needs.builder-image.outputs.image-tag }}
image: ghcr.io/${{ needs.build-image.outputs.repo-name }}/dashcore-ci-runner:${{ needs.build-image.outputs.image-tag }}
options: --user root
steps:
- name: Checkout code
Expand Down Expand Up @@ -152,10 +152,10 @@ jobs:
# Come back to this later and implement tests :)
# test:
# name: Test
# needs: [builder-image, build]
# needs: [build-image, build]
# runs-on: ubuntu-20.04
# container:
# image: ghcr.io/${{ needs.builder-image.outputs.repo-name }}/builder:${{ needs.builder-image.outputs.image-tag }}
# image: ghcr.io/${{ needs.build-image.outputs.repo-name }}/dashcore-ci-runner:${{ needs.build-image.outputs.image-tag }}
# options: --user root
# steps:
# - name: Checkout code
Expand Down

0 comments on commit bd56cd4

Please sign in to comment.