Skip to content

Test master branch 5 #195

Test master branch 5

Test master branch 5 #195

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ github-actions-optimisation ]
workflow_dispatch:
env:
DOCKER_IMAGE_REPO: bandirom/django-template
jobs:
# tests:
# uses: ./.github/workflows/tests.yml
# secrets: inherit
push:

Check failure on line 15 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Docker Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 15, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: [tests]
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.DOCKER_IMAGE_REPO }}
tags: |
type=sha,format=short,prefix=
- name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: docker/prod/web/Dockerfile