Skip to content

Merge pull request #4 from Antvirf/dependabot/pip/celery-5.3.6 #6

Merge pull request #4 from Antvirf/dependabot/pip/celery-5.3.6

Merge pull request #4 from Antvirf/dependabot/pip/celery-5.3.6 #6

name: "Build Django image"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- "main"
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and push
uses: docker/build-push-action@v4
id: build-image
env:
REGISTRY: ghcr.io/antvirf/railway_django_stack
with:
context: ./.
file: ./Dockerfile
push: true
tags: ${{env.REGISTRY}}:${{github.run_number}}
cache-from: type=gha
cache-to: type=gha,mode=max