dont pull drone image each launch
This commit is contained in:
parent
6041684856
commit
dc80bb1a46
2 changed files with 4 additions and 7 deletions
|
|
@ -24,8 +24,7 @@
|
|||
Restart = "always";
|
||||
ExecStartPre= ''
|
||||
-${pkgs.podman}/bin/podman stop %n \
|
||||
-${pkgs.podman}/bin/podman rm %n \
|
||||
${pkgs.podman}/bin/podman pull drone/drone:2.20.0
|
||||
${pkgs.podman}/bin/podman rm %n
|
||||
'';
|
||||
ExecStart= ''
|
||||
${pkgs.podman}/bin/podman run --rm --name %n \
|
||||
|
|
@ -34,7 +33,7 @@
|
|||
--env=DRONE_RPC_PROTO=https \
|
||||
--env=DRONE_RPC_HOST=drone.cloonar.com \
|
||||
--env=DRONE_RUNNER_CAPACITY=2 \
|
||||
drone/drone-runner-podman:1.8.3
|
||||
drone/drone-runner-docker:1.8.3
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -17,15 +17,13 @@
|
|||
path = [ pkgs.podman ];
|
||||
|
||||
serviceConfig = {
|
||||
# Type = "simple";
|
||||
Name = "drone-server";
|
||||
User = "drone-server";
|
||||
Group = "drone-server";
|
||||
Restart = "always";
|
||||
ExecStartPre= ''
|
||||
-${pkgs.podman}/bin/podman stop %n \
|
||||
-${pkgs.podman}/bin/podman rm %n \
|
||||
${pkgs.podman}/bin/podman pull drone/drone:2.20.0
|
||||
${pkgs.podman}/bin/podman rm %n
|
||||
'';
|
||||
ExecStart= ''
|
||||
${pkgs.podman}/bin/podman run --rm --name %n \
|
||||
|
|
@ -39,7 +37,7 @@
|
|||
--env=DRONE_USER_CREATE=username:dominik.polakovics,admin:true \
|
||||
-v /var/lib/drone:/data \
|
||||
--publish=8080:80 \
|
||||
drone/drone:2
|
||||
drone/drone:2.20.0
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue