Fix drone ntfy version
This commit is contained in:
@ -30,7 +30,7 @@ steps:
|
|||||||
- vrobbler.service
|
- vrobbler.service
|
||||||
username: root
|
username: root
|
||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: ssh_key
|
from_secret: jail_key
|
||||||
command_timeout: 2m
|
command_timeout: 2m
|
||||||
script:
|
script:
|
||||||
- pip uninstall -y vrobbler
|
- pip uninstall -y vrobbler
|
||||||
@ -42,7 +42,7 @@ steps:
|
|||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
- name: build success notification
|
- name: build success notification
|
||||||
image: parrazam/drone-ntfy
|
image: parrazam/drone-ntfy:0.3-linux-amd64
|
||||||
when:
|
when:
|
||||||
status: [success]
|
status: [success]
|
||||||
settings:
|
settings:
|
||||||
@ -50,11 +50,10 @@ steps:
|
|||||||
topic: drone
|
topic: drone
|
||||||
priority: low
|
priority: low
|
||||||
tags:
|
tags:
|
||||||
- cd
|
|
||||||
- failure
|
- failure
|
||||||
- vrobbler
|
- vrobbler
|
||||||
- name: build failure notification
|
- name: build failure notification
|
||||||
image: parrazam/drone-ntfy
|
image: parrazam/drone-ntfy:0.3-linux-amd64
|
||||||
when:
|
when:
|
||||||
status: [failure]
|
status: [failure]
|
||||||
settings:
|
settings:
|
||||||
@ -62,7 +61,6 @@ steps:
|
|||||||
topic: drone
|
topic: drone
|
||||||
priority: high
|
priority: high
|
||||||
tags:
|
tags:
|
||||||
- cd
|
|
||||||
- success
|
- success
|
||||||
- vrobbler
|
- vrobbler
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@ -29,6 +29,16 @@ class JSONMetadata(JSONWizard):
|
|||||||
def json(self):
|
def json(self):
|
||||||
return json.dumps(self.asdict)
|
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
|
@dataclass
|
||||||
class BoardGameScore(JSONMetadata):
|
class BoardGameScore(JSONMetadata):
|
||||||
|
|||||||
Reference in New Issue
Block a user