diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml deleted file mode 100644 index 5e187b0..0000000 --- a/.github/workflows/docker.yaml +++ /dev/null @@ -1,62 +0,0 @@ -name: ci - -on: - push: - branches: - - main # Trigger on push to main branch (adjust as needed) - -jobs: - build-and-up: - runs-on: ubuntu-latest - - steps: - # Step 1: Checkout the repository - - name: Check out repository - uses: actions/checkout@v3 - - # Step 2: Set up Python - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' # Specify the Python version you need - - # Step 3: Install dependencies - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt # Install dependencies listed in requirements.txt - pip install flake8 # Install Flake8 for linting - - # Step 4: Run Flake8 for code quality checks - - name: Run Flake8 - run: | - flake8 . # Run Flake8 on the entire repository (or specify folders/files) - - # Step 5: Set up Docker - - name: Set up Docker - uses: docker/setup-docker-action@v2 - with: - version: 'latest' # Install latest version of Docker - - # Step 6: Install Docker Compose - - name: Install Docker Compose - run: | - sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - sudo chmod +x /usr/local/bin/docker-compose - docker-compose --version # Verify installation - - # Step 7: Enable Docker BuildKit - - name: Enable Docker BuildKit - run: | - echo "export DOCKER_CLI_EXPERIMENTAL=enabled" >> $GITHUB_ENV - echo "export DOCKER_BUILDKIT=1" >> $GITHUB_ENV - - # Step 8: Build Docker images from docker-compose.yaml - - name: Build images using Docker Compose - run: | - docker-compose -f ./docker-compose.yaml build - - # Step 9: Run docker-compose up with --abort-on-container-exit flag - - name: Start containers with docker-compose up - run: | - docker-compose -f ./docker-compose.yaml up --abort-on-container-exit