fix-ci-docker (#59)
Co-authored-by: Forgejo Actions <actions@git.mcintire.me> Reviewed-on: graham/towerops-web#59
This commit is contained in:
parent
fa2e09d7cc
commit
b03f280b65
2 changed files with 6 additions and 3 deletions
|
|
@ -229,8 +229,11 @@ jobs:
|
|||
- name: Start Docker daemon
|
||||
run: |
|
||||
# Start Docker daemon in background if not running
|
||||
# --iptables=false avoids NAT/bridge setup which requires root caps
|
||||
# not available in unprivileged CI runners (only needed for container networking,
|
||||
# not for building/pushing images)
|
||||
if ! docker info > /dev/null 2>&1; then
|
||||
sudo dockerd &
|
||||
sudo dockerd --iptables=false &
|
||||
# Wait for Docker to be ready
|
||||
timeout 30 bash -c 'until docker info > /dev/null 2>&1; do sleep 1; done'
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ spec:
|
|||
type: RuntimeDefault
|
||||
initContainers:
|
||||
- name: migrate
|
||||
image: git.mcintire.me/graham/towerops-web:production-1773688540-020a55c
|
||||
image: git.mcintire.me/graham/towerops-web:production-1773753909-becd2ef
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["/app/bin/migrate"]
|
||||
securityContext:
|
||||
|
|
@ -104,7 +104,7 @@ spec:
|
|||
cpu: "500m"
|
||||
containers:
|
||||
- name: towerops
|
||||
image: git.mcintire.me/graham/towerops-web:production-1773688540-020a55c
|
||||
image: git.mcintire.me/graham/towerops-web:production-1773753909-becd2ef
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue