name: CI on: push: branches: - Django workflow_dispatch: concurrency: group: ci-${{ github.ref }} cancel-in-progress: true jobs: docker-ci: if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[ci]')) runs-on: ubuntu-latest timeout-minutes: 40 env: DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} DJANGO_DEBUG: "False" DJANGO_ALLOWED_HOSTS: "127.0.0.1,localhost" IMAGE_NAME: achievement_inputing_ci steps: - name: Build application image run: | docker build -t "$IMAGE_NAME" -f Dockerfile . - name: Output image info run: | docker image inspect "$IMAGE_NAME" --format '{{.Id}} {{.Size}}'