Skip to content

Commit

Permalink
feat(CI): get CI working again
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer committed Jan 28, 2025
1 parent c0720af commit 23da2c6
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .github/license-check/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"pkg/contracts/**",
"pkg/readerclient/generated.go",
"pkg/inspectclient/generated.go",
"rollups-contracts/**"
"rollups-contracts/**",
"internal/repository/postgres/db/**"
],
"license": ".github/license-check/header.txt"
}
Expand Down
35 changes: 19 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
name=ghcr.io/cartesi/rollups-node-ci
name=ghcr.io/cartesi/rollups-node
tags: |
type=semver,pattern={{version}}
type=ref,event=branch
Expand All @@ -46,23 +46,26 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: depot/setup-action@v1
- name: Build and push docker image
id: docker_build
uses: depot/bake-action@v1
- name: Set up Depot CLI
uses: depot/setup-action@v1

- name: Build docker image
uses: depot/build-push-action@v1
with:
files: |
./docker-bake.hcl
${{ steps.docker_meta.outputs.bake-file }}
./docker-bake.platforms.hcl
targets: rollups-node-ci
push: true
file: Dockerfile
context: .
platforms: linux/amd64,linux/arm64
tags: ${{ github.repository_owner }}/rollups-node:devel.build
push: false
load: true
cache-from: type=gha,scope=debian
cache-to: type=gha,mode=max,scope=debian
build-args: |
DEBUG=${{ (startsWith(github.ref, 'refs/tags/v') && 'no' || 'yes') }}
GIT_COMMIT=${GITHUB_SHA}
MACHINE_EMULATOR_VERSION=${{ env.MACHINE_EMULATOR_VERSION }}
project: ${{ vars.DEPOT_PROJECT }}
workdir: build

- name: Export Image Tag
id : export_tag
run : echo "image_tag=${{steps.docker_meta.outputs.version}}" >> "$GITHUB_OUTPUT"
token: ${{ secrets.DEPOT_TOKEN }}

do-basic-checks:
runs-on: ubuntu-22.04
Expand Down
3 changes: 3 additions & 0 deletions internal/advancer/machines/machines_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// (c) Cartesi and individual authors (see AUTHORS)
// SPDX-License-Identifier: Apache-2.0 (see LICENSE)

package machines

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/service/address.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// (c) Cartesi and individual authors (see AUTHORS)
// SPDX-License-Identifier: Apache-2.0 (see LICENSE)

// Implementation of the pflags Value interface.
package service

Expand Down
3 changes: 3 additions & 0 deletions pkg/service/log.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// (c) Cartesi and individual authors (see AUTHORS)
// SPDX-License-Identifier: Apache-2.0 (see LICENSE)

// Implementation of the pflags Value interface.
package service

Expand Down

0 comments on commit 23da2c6

Please sign in to comment.