diff options
| author | 2020-11-18 22:27:12 +0100 | |
|---|---|---|
| committer | 2020-11-18 22:27:12 +0100 | |
| commit | 2e3520041b069e1abdc68a82c6ee84c54e209c11 (patch) | |
| tree | b5bbc22c647306d103a38321c110535ce4ce2e1e | |
| parent | Remove escape sequence and improve job name (diff) | |
Rectify production branch and clean up formatting
| -rw-r--r-- | .github/workflows/lint-test-build-push.yaml | 29 | 
1 files changed, 15 insertions, 14 deletions
| diff --git a/.github/workflows/lint-test-build-push.yaml b/.github/workflows/lint-test-build-push.yaml index 4222ce7..8dd9b34 100644 --- a/.github/workflows/lint-test-build-push.yaml +++ b/.github/workflows/lint-test-build-push.yaml @@ -14,7 +14,7 @@ jobs:        # Determine whether or not we should build the        # final production image and push it to GHCR.        production_build: ${{ github.event_name != 'pull_request' && -        github.ref == 'refs/heads/sebastiaan/backend/cache-docker-images' }} +        github.ref == 'refs/heads/master' }}      steps:        # Create a short SHA-tag to tag built images @@ -79,19 +79,20 @@ jobs:            tags: ghcr.io/python-discord/snekbox-venv:${{ steps.sha_tag.outputs.tag }}        - name: Start Container -        run: "docker run \ -          --tty \ -          --detach \ -          --name snekbox_test \ -          --privileged \ -          --hostname pdsnk-dev \ -          -e PYTHONDONTWRITEBYTECODE=1 \ -          -e PIPENV_PIPFILE='/snekbox/Pipfile' \ -          -e ENV=\"${PWD}/scripts/.profile\" \ -          --volume \"${PWD}\":\"${PWD}\" \ -          --workdir \"${PWD}\" \ -          --entrypoint /bin/bash \ -          ghcr.io/python-discord/snekbox-venv:${{ steps.sha_tag.outputs.tag }}" +        run: >- +          docker run +          --tty +          --detach +          --name snekbox_test +          --privileged +          --hostname pdsnk-dev +          -e PYTHONDONTWRITEBYTECODE=1 +          -e PIPENV_PIPFILE='/snekbox/Pipfile' +          -e ENV="${PWD}/scripts/.profile" +          --volume "${PWD}":"${PWD}" +          --workdir "${PWD}" +          --entrypoint /bin/bash +          ghcr.io/python-discord/snekbox-venv:${{ steps.sha_tag.outputs.tag }}        - name: Install dependencies          run: "docker exec snekbox_test /bin/bash -c \ | 
