Skip to content
Merged
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
28 changes: 28 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2
# Dependabot keeps dependencies and GitHub Actions current.
# cooldown.default-days: 7 => only propose versions that have been public
# for at least 7 days, mitigating malicious just-published releases.
# Note: cooldowns delay version updates, but they do not delay security updates
# (vulnerability fixes still open immediately).
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
timezone: Europe/Berlin
cooldown:
default-days: 7
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
timezone: Europe/Berlin
cooldown:
default-days: 7
- package-ecosystem: docker
directory: "/"
schedule:
interval: weekly
timezone: Europe/Berlin
cooldown:
default-days: 7
20 changes: 13 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
Comment thread
coderabbitai[bot] marked this conversation as resolved.
with:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: '24.19.0'
- name: Cache node_modules
uses: actions/cache@v3
uses: actions/cache@v6
env:
cache-name: cache-node-modules
with:
Expand All @@ -35,7 +37,9 @@ jobs:
dockertest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
persist-credentials: false
- run: docker build -t 'ocean-node-bootstrap:mybuild' .

build:
Expand All @@ -48,12 +52,14 @@ jobs:
node: ['24.19.0']

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
- name: Cache node_modules
uses: actions/cache@v3
uses: actions/cache@v6
env:
cache-name: cache-node-modules
with:
Expand Down
53 changes: 30 additions & 23 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ env:
DOCKERHUB_IMAGE: ${{ 'oceanprotocol/ocean-node-bootstrap' }}
GHCR_IMAGE: ${{ 'ghcr.io/oceanprotocol/ocean-node-bootstrap' }}

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -29,15 +32,17 @@ jobs:
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v4
with:
platforms: ${{ matrix.platform }}
#image: tonistiigi/binfmt:qemu-v8.0.4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
with:
platforms: ${{ matrix.platform }}
- name: Login to Docker Hub
Expand All @@ -46,7 +51,7 @@ jobs:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_PUSH_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKER_PUSH_TOKEN }}
if: env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != ''
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_PUSH_USERNAME }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
Expand All @@ -55,14 +60,14 @@ jobs:
env:
GHCR_PUSH_TOKEN: ${{ secrets.GHCR_PUSH_TOKEN }}
if: env.GHCR_PUSH_TOKEN != ''
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PUSH_TOKEN }}
- name: Set Docker metadata
id: ocean_node_meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: |
${{ env.DOCKERHUB_IMAGE }}
Expand All @@ -78,7 +83,7 @@ jobs:
- name: Build and push to Docker Hub
if: steps.dockerhub_login.outcome == 'success'
id: build_dockerhub
uses: docker/build-push-action@v5
uses: docker/build-push-action@v7
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
Expand All @@ -90,7 +95,7 @@ jobs:
- name: Build and push to GHCR
if: steps.ghcr_login.outcome == 'success'
id: build_ghcr
uses: docker/build-push-action@v5
uses: docker/build-push-action@v7
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
Expand All @@ -110,7 +115,7 @@ jobs:
touch "/tmp/digests/ghcr-${ghcr_digest#sha256:}"
fi
- name: Upload digest
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
Expand All @@ -131,15 +136,17 @@ jobs:
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v4
with:
platforms: ${{ matrix.platform }}
#image: tonistiigi/binfmt:qemu-v8.0.4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
with:
platforms: ${{ matrix.platform }}
- name: Login to Docker Hub
Expand All @@ -148,7 +155,7 @@ jobs:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_PUSH_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKER_PUSH_TOKEN }}
if: env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != ''
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_PUSH_USERNAME }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
Expand All @@ -157,14 +164,14 @@ jobs:
env:
GHCR_PUSH_TOKEN: ${{ secrets.GHCR_PUSH_TOKEN }}
if: env.GHCR_PUSH_TOKEN != ''
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PUSH_TOKEN }}
- name: Set Docker metadata
id: ocean_node_meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: |
${{ env.DOCKERHUB_IMAGE }}
Expand All @@ -180,7 +187,7 @@ jobs:
- name: Build and push to Docker Hub
if: steps.dockerhub_login.outcome == 'success'
id: build_dockerhub
uses: docker/build-push-action@v5
uses: docker/build-push-action@v7
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
Expand All @@ -192,7 +199,7 @@ jobs:
- name: Build and push to GHCR
if: steps.ghcr_login.outcome == 'success'
id: build_ghcr
uses: docker/build-push-action@v5
uses: docker/build-push-action@v7
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
Expand All @@ -212,7 +219,7 @@ jobs:
touch "/tmp/digests/ghcr-arm64-${ghcr_digest#sha256:}"
fi
- name: Upload digest
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
Expand All @@ -227,16 +234,16 @@ jobs:
- build-arm
steps:
- name: Download digests
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
- name: Set Docker metadata
id: ocean_node_meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: |
${{ env.DOCKERHUB_IMAGE }}
Expand All @@ -255,7 +262,7 @@ jobs:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_PUSH_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKER_PUSH_TOKEN }}
if: env.DOCKERHUB_USERNAME != '' && env.DOCKERHUB_TOKEN != ''
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_PUSH_USERNAME }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
Expand All @@ -264,7 +271,7 @@ jobs:
env:
GHCR_PUSH_TOKEN: ${{ secrets.GHCR_PUSH_TOKEN }}
if: env.GHCR_PUSH_TOKEN != ''
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ghcr_cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ env:
DOCKERHUB_IMAGE: ${{ 'oceanprotocol/ocean-node-bootstrap' }}
GHCR_IMAGE: ${{ 'ghcr.io/oceanprotocol/ocean-node-bootstrap' }}

permissions:
contents: read

jobs:
ghcr_cleanup:
runs-on: ubuntu-latest
Expand All @@ -16,14 +19,14 @@ jobs:
env:
GHCR_PUSH_TOKEN: ${{ secrets.GHCR_PUSH_TOKEN }}
if: env.GHCR_PUSH_TOKEN != ''
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PUSH_TOKEN }}
- name: 'Clean up docker images'
if: steps.ghcr_login.outcome == 'success'
uses: dataaxiom/ghcr-cleanup-action@v1
uses: dataaxiom/ghcr-cleanup-action@d52806a0dc70b430571a37da1fde39733ffd640f # v1.2.2
with:
token: ${{ secrets.GHCR_PUSH_TOKEN }}
exclude-tags: latest,main,v*
Expand Down
Loading
Loading