From c7c668590e5bdd911ad30c9e4fb5b10940c58af9 Mon Sep 17 00:00:00 2001 From: Gideon Goldberg <1764158+gidsg@users.noreply.github.com> Date: Mon, 6 Nov 2023 12:01:18 +0000 Subject: [PATCH] use packeto built image --- .github/workflows/deploy.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 09e10ac..8ee3c67 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,17 +36,6 @@ jobs: - name: Git clone the repository uses: actions/checkout@v3 - - name: Setup python - uses: actions/setup-python@v4 - with: - python-version: '3.11' - cache: pip # caching pip dependencies - - - name: Build static assets - run: | - pip install -r requirements_dev.txt - python3 build.py - - name: Get current date id: currentdatetime run: echo "::set-output name=datetime::$(date +'%Y%m%d%H%M%S')" @@ -67,6 +56,7 @@ jobs: yq -i '.variables.GITHUB_SHA = "${{ github.sha }}"' copilot/submit/manifest.yml yq -i '.http.alias = "${{ vars.ALIAS }}"' copilot/submit/manifest.yml yq -i '.variables.FLASK_ENV = "${{ inputs.environment || 'test' }}"' copilot/submit/manifest.yml + yq -i '.image.location = "ghcr.io/communitiesuk/${{ github.event.repository.name }}:${{ github.ref_name == 'main' && 'latest' || github.ref_name }}"' copilot/submit/manifest.yml - name: Copilot deploy run: |