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
8 changes: 2 additions & 6 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Docker Image

# This workflow runs automatically when
# - a commit is made to the main branch, or
# - a tag is pushed.
# This workflow runs automatically when a tag is pushed.
# Alternatively, the workflow can be manually triggerred on GitHub (UI).

on:
workflow_dispatch:
push:
branches:
- main
tags:
- "*"

Expand Down Expand Up @@ -47,7 +43,7 @@ jobs:
# (type=sha rule has lower priority than type=ref.)
tags: |
type=semver,event=tag,pattern={{version}}
type=sha,event=branch,prefix=${{ github.ref_name }}-,format=short
type=sha,event=workflow_dispatch,prefix=${{ github.ref_name }}-,format=short
- name: Build and push the Docker image
uses: docker/build-push-action@v6
with:
Expand Down
1 change: 0 additions & 1 deletion config/beacon-aggregated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ base_path: /beacon/aggregated/v2
info:
id: org.example.aggregated.beacon.v2
name: GDI Aggregated Beacon API
version: v0.9.0
environment: dev # choices: dev, test, staging, prod

# The following are all OPTIONAL:
Expand Down
1 change: 0 additions & 1 deletion config/beacon-sensitive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ base_path: /beacon/sensitive/v2
info:
id: org.example.sensitive.beacon.v2
name: GDI Sensitive Beacon API
version: v0.9.0
environment: dev # choices: dev, test, staging, prod

# The following are all OPTIONAL:
Expand Down
1 change: 0 additions & 1 deletion mini_node/beacon/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class BeaconInfoConfig(BaseModel):
model_config = ConfigDict(extra='forbid')
id: str
name: str
version: str
environment: BeaconEnvironment
description: str | None = None
alternativeUrl: HttpUrl | None = None
Expand Down
6 changes: 3 additions & 3 deletions mini_node/beacon/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
BeaconServiceInfoOrganization,
)
from ..oidc import OidcVerifier
from ..setup import encode_basic_credential
from ..setup import app_version, encode_basic_credential

"""Here are the prepared responses for the Beacon Framework API."""

Expand Down Expand Up @@ -63,7 +63,7 @@ def create_beacon_info(context: BeaconContext, base_url: str) -> BeaconInfo:
logoUrl=organisation.logoUrl,
),
description=info.description,
version=info.version,
version=f"v{app_version}",
welcomeUrl=base_path,
alternativeUrl=info.alternativeUrl,
createDateTime=info.createdAt,
Expand Down Expand Up @@ -95,7 +95,7 @@ def create_service_info(context: BeaconContext) -> ServiceInfo:
createdAt=info.createdAt,
updatedAt=info.updatedAt,
environment=info.environment,
version=info.version,
version=f"v{app_version}",
)


Expand Down
4 changes: 2 additions & 2 deletions mini_node/data/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def observe(self, stop_signal: threading.Event) -> None:
if local_path.exists():
self._remove_file(local_path)

except S3Error as exc:
except Exception as exc:
_log.error("S3 event-listener error: %s", exc)
time.sleep(2)
time.sleep(60)

_log.info("S3 event observer stopped")