You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if skaffold build --filename "k8s/production/skaffold.production.yaml"; then
46
+
if DOCKER_CONFIG=${{ env.DOCKER_CONFIG }} skaffold build --filename "k8s/production/skaffold.production.yaml" --default-repo=registry.digitalocean.com/aztlan-containers; then
50
47
return 0
51
48
fi
52
49
echo "Attempt $i failed. Retrying in $RETRY_DELAY seconds..."
@@ -62,6 +59,11 @@ jobs:
62
59
exit 1
63
60
fi
64
61
62
+
- name: Cleanup old images
63
+
run: |
64
+
chmod +x "./cleanup-script.sh"
65
+
./cleanup-script.sh
66
+
65
67
- name: Save DigitalOcean kubeconfig
66
68
run: doctl kubernetes cluster kubeconfig save "chicmoz-prod"
67
69
@@ -71,12 +73,12 @@ jobs:
71
73
RETRY_DELAY=10
72
74
73
75
for i in $(seq 1 $MAX_RETRIES); do
74
-
if skaffold run --filename "k8s/production/skaffold.production.yaml"; then
76
+
if DOCKER_CONFIG=${{ env.DOCKER_CONFIG }} skaffold run --filename "k8s/production/skaffold.production.yaml" --default-repo=registry.digitalocean.com/aztlan-containers; then
75
77
echo "Deployment successful"
76
78
exit 0
77
79
fi
78
80
echo "Attempt $i failed. Retrying in $RETRY_DELAY seconds..."
79
-
sleep $RETRY_DELAY
81
+
sleep $RETRY_DELAY
80
82
done
81
83
82
84
echo "Deployment failed after $MAX_RETRIES attempts"
0 commit comments