From feb07ed5101eb1dbcb36c3562bf81bb81ee972dd Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Tue, 13 Dec 2022 14:01:29 +0000 Subject: [PATCH] deploy (old): replace actions/setup-python@v4 with ansible image (#3081) Replace actions/setup-python@v4 with the ansible image to fix ``` Version 3.10 was not found in the local cache Error: The version '3.10' with architecture 'x64' was not found for this operating system. ``` --- .github/workflows/build_and_test.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 8707065ef2..678f9cbfce 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -752,7 +752,7 @@ jobs: deploy: runs-on: [ self-hosted, dev, x64 ] - container: 369495373322.dkr.ecr.eu-central-1.amazonaws.com/base:pinned + container: 369495373322.dkr.ecr.eu-central-1.amazonaws.com/ansible:pinned # We need both storage **and** compute images for deploy, because control plane picks the compute version based on the storage version. # If it notices a fresh storage it may bump the compute version. And if compute image failed to build it may break things badly needs: [ push-docker-hub, calculate-deploy-targets, tag, regress-tests ] @@ -772,16 +772,6 @@ jobs: submodules: true fetch-depth: 0 - - name: Setup python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - - name: Setup ansible - run: | - export PATH="/root/.local/bin:$PATH" - pip install --progress-bar off --user ansible boto3 toml - - name: Redeploy run: | export DOCKER_TAG=${{needs.tag.outputs.build-tag}}