diff --git a/cookiecutter-django/{{cookiecutter.project_slug}}/.github/workflows/docker.yml b/cookiecutter-django/{{cookiecutter.project_slug}}/.github/workflows/docker.yml index 508d90d..f8a6797 100644 --- a/cookiecutter-django/{{cookiecutter.project_slug}}/.github/workflows/docker.yml +++ b/cookiecutter-django/{{cookiecutter.project_slug}}/.github/workflows/docker.yml @@ -7,32 +7,4 @@ on: - completed jobs: docker: - if: ${{ github.event.workflow_run.conclusion == 'success' }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - # https://github.com/docker/login-action#github-container-registry - - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - # https://github.com/docker/setup-buildx-action#usage - - uses: docker/setup-buildx-action@v3 - # https://github.com/docker/build-push-action#usage - - uses: docker/build-push-action@v6 - with: - push: true - file: Dockerfile_django - tags: | - ghcr.io/${{ github.repository }}-django:latest - cache-from: type=gha - cache-to: type=gha,mode=max - - uses: docker/build-push-action@v6 - with: - push: true - file: Dockerfile_static - tags: | - ghcr.io/${{ github.repository }}-static:latest - cache-from: type=gha - cache-to: type=gha,mode=max + uses: open-contracting/.github/.github/workflows/docker-django.yml@main