Fix drone ntfy version

This commit is contained in:
2024-07-14 01:15:27 -04:00
parent 2e57b2ce07
commit dcd7196010
2 changed files with 13 additions and 5 deletions

View File

@ -30,7 +30,7 @@ steps:
- vrobbler.service
username: root
ssh_key:
from_secret: ssh_key
from_secret: jail_key
command_timeout: 2m
script:
- pip uninstall -y vrobbler
@ -42,7 +42,7 @@ steps:
branch:
- main
- name: build success notification
image: parrazam/drone-ntfy
image: parrazam/drone-ntfy:0.3-linux-amd64
when:
status: [success]
settings:
@ -50,11 +50,10 @@ steps:
topic: drone
priority: low
tags:
- cd
- failure
- vrobbler
- name: build failure notification
image: parrazam/drone-ntfy
image: parrazam/drone-ntfy:0.3-linux-amd64
when:
status: [failure]
settings:
@ -62,7 +61,6 @@ steps:
topic: drone
priority: high
tags:
- cd
- success
- vrobbler
volumes:

View File

@ -29,6 +29,16 @@ class JSONMetadata(JSONWizard):
def json(self):
return json.dumps(self.asdict)
@classmethod
def from_dict(cls, env):
return cls(
**{
k: v
for k, v in env.items()
if k in inspect.signature(cls).parameters
}
)
@dataclass
class BoardGameScore(JSONMetadata):