Skip to content

build(build-dockerfile): add github action to build and push the main… #1

build(build-dockerfile): add github action to build and push the main…

build(build-dockerfile): add github action to build and push the main… #1

name: Deploy Images to GHCR
on:
push:
branches:
- main
workflow_dispatch:
jobs:
push-django-image:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./incredible_data"
steps:
- name: "Checkout GitHub Action"
uses: actions/checkout@main
- name: "Login to GitHub Container Registry"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: "Build Inventory Image"
run: |
docker build . --file "./incredible_data/compose/production/django/Dockerfile" --tag ghcr.io/WoosterTech/incredible_data_production_django:latest
docker push ghcr.io/WoosterTech/incredible_data_production_django:latest