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: |