Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

ci: build-images runs on actions that are not deprecated

Sidwebworksba5721afef14
diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml
index f5174a9546..100c2a2627 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -35,18 +35,18 @@ jobs:
image:
name: carbon/${{ matrix.image }}
if: vars.IMAGE_REGISTRY != ''
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
image: [erp, mes, ops, edge-functions, assembler]
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
+ - uses: actions/checkout@v7
with:
fetch-depth: 2
- if: vars.IMAGE_AWS_REGION != ''
- uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
+ uses: aws-actions/configure-aws-credentials@v6
with:
aws-region: ${{ vars.IMAGE_AWS_REGION }}
role-to-assume: ${{ vars.IMAGE_AWS_ROLE_ARN }}
@@ -57,14 +57,19 @@ jobs:
run: echo "host=${REGISTRY%%/*}" >> "$GITHUB_OUTPUT"
# ECR logs in from the AWS credentials above when no password is given.
- - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
+ - uses: docker/login-action@v4
with:
registry: ${{ steps.host.outputs.host }}
username: ${{ secrets.IMAGE_REGISTRY_USERNAME || (steps.host.outputs.host == 'ghcr.io' && github.actor) || '' }}
password: ${{ secrets.IMAGE_REGISTRY_PASSWORD || (steps.host.outputs.host == 'ghcr.io' && secrets.GITHUB_TOKEN) || '' }}
- id: buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
+ uses: docker/setup-buildx-action@v4
+ with:
+ # The runner is thrown away after the job; removing the builder
+ # on the way out only produces an error when something still
+ # holds it.
+ cleanup: false
- id: plan
run: .github/scripts/build-images.sh ${{ matrix.image }}
@@ -82,7 +87,7 @@ jobs:
# The assembler links a prebuilt OCCT base; built here only when this
# registry does not have the one its sources describe.
- if: steps.plan.outputs.occt_build == 'true'
- uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
+ uses: docker/build-push-action@v7
with:
context: apps/assembler
file: apps/assembler/occt.Dockerfile
@@ -95,21 +100,21 @@ jobs:
# start empty on every runner; carry them between runs. Keyed by
# commit and restored from the newest, so each run saves what it adds.
- if: steps.plan.outputs.action == 'build'
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
+ uses: actions/cache@v6
with:
path: cache-mounts
key: cache-mounts-${{ matrix.image }}-${{ github.sha }}
restore-keys: cache-mounts-${{ matrix.image }}-
- if: steps.plan.outputs.action == 'build'
- uses: reproducible-containers/buildkit-cache-dance@5422eac04292c961a382e0f584ea0f03ad9da723 # v3.4.0
+ uses: reproducible-containers/buildkit-cache-dance@v3
with:
builder: ${{ steps.buildx.outputs.name }}
cache-dir: cache-mounts
dockerfile: ${{ steps.plan.outputs.file }}
- if: steps.plan.outputs.action == 'build'
- uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
+ uses: docker/build-push-action@v7
with:
context: .
file: ${{ steps.plan.outputs.file }}