diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 38fda2e..8a055c8 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -9,7 +9,7 @@ on: #schedule: # - cron: '22 13 * * *' push: - branches: [ main ] + branches: [ main, problema-com-dependencias ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] #pull_request: @@ -36,36 +36,38 @@ jobs: # Installs dependencies from requirements.txt - name: Install dependencies - run: pip3 install -r requirements.txt + run: | + pip install --upgrade pip setuptools wheel + pip3 install --no-cache-dir -r requirements.txt - # Running all tests - - name: Running tests - run: python3 -m unittest discover -s ./src -p 'test_*.py' + # # Running all tests + # - name: Running tests + # run: python3 -m unittest discover -s ./src -p 'test_*.py' - # Login against a Docker registry except on PR - # https://github.com/docker/login-action - - name: Log into registry ${{ env.REGISTRY }} - if: github.event_name != 'pull_request' - uses: docker/login-action@v1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + # # Login against a Docker registry except on PR + # # https://github.com/docker/login-action + # - name: Log into registry ${{ env.REGISTRY }} + # if: github.event_name != 'pull_request' + # uses: docker/login-action@v1 + # with: + # registry: ${{ env.REGISTRY }} + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} - # Extract metadata (tags, labels) for Docker - # https://github.com/docker/metadata-action - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v3 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + # # Extract metadata (tags, labels) for Docker + # # https://github.com/docker/metadata-action + # - name: Extract Docker metadata + # id: meta + # uses: docker/metadata-action@v3 + # with: + # images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # Build and push Docker image with Buildx (don't push on PR) - # https://github.com/docker/build-push-action - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + # # Build and push Docker image with Buildx (don't push on PR) + # # https://github.com/docker/build-push-action + # - name: Build and push Docker image + # uses: docker/build-push-action@v2 + # with: + # context: . + # push: ${{ github.event_name != 'pull_request' }} + # tags: ${{ steps.meta.outputs.tags }} + # labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file