fix: drop container block, set DOCKER_HOST/TLS_VERIFY as job env, install via get.docker.com
CI/CD / build-and-push (push) Failing after 54s
CI/CD / build-and-push (push) Failing after 54s
This commit is contained in:
+6
-17
@@ -11,15 +11,12 @@ env:
|
||||
IMAGE_API: git.chemavx.xyz/chemavx/polymarket-bot-api
|
||||
K8S_MANIFESTS_REPO: http://chemavx:${{ secrets.CI_TOKEN }}@gitea.gitea.svc.cluster.local:3000/chemavx/k8s-manifests.git
|
||||
GIT_SSL_NO_VERIFY: "true"
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
DOCKER_TLS_VERIFY: "0"
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-alpine
|
||||
env:
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
DOCKER_TLS_VERIFY: "0"
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -27,13 +24,10 @@ jobs:
|
||||
ssl-verify: false
|
||||
|
||||
- name: Install Docker CLI
|
||||
run: apk add --no-cache docker-cli
|
||||
run: curl -fsSL https://get.docker.com | sh
|
||||
|
||||
- name: Clear Docker TLS config
|
||||
run: |
|
||||
rm -rf /root/.docker
|
||||
mkdir -p /root/.docker
|
||||
echo '{"auths":{}}' > /root/.docker/config.json
|
||||
- name: Test Docker connection
|
||||
run: docker info
|
||||
|
||||
- name: Set image tag
|
||||
id: tag
|
||||
@@ -80,15 +74,10 @@ jobs:
|
||||
git clone ${{ env.K8S_MANIFESTS_REPO }} /tmp/k8s-manifests
|
||||
cd /tmp/k8s-manifests
|
||||
|
||||
# Update bot image
|
||||
sed -i "s|image: .*polymarket-bot.*|image: ${{ env.IMAGE_BOT }}:${TAG}|g" \
|
||||
sed -i "s|image: .*polymarket-bot[^-].*|image: ${{ env.IMAGE_BOT }}:${TAG}|g" \
|
||||
polymarket-bot/deployment-bot.yaml
|
||||
|
||||
# Update API image
|
||||
sed -i "s|image: .*polymarket-bot-api.*|image: ${{ env.IMAGE_API }}:${TAG}|g" \
|
||||
polymarket-bot/deployment-api.yaml
|
||||
|
||||
# Fix imagePullPolicy to Always (registry instead of local)
|
||||
sed -i "s|imagePullPolicy: Never|imagePullPolicy: Always|g" \
|
||||
polymarket-bot/deployment-bot.yaml \
|
||||
polymarket-bot/deployment-api.yaml
|
||||
|
||||
Reference in New Issue
Block a user