Skip to content

fix: resolve docker build issues #7

fix: resolve docker build issues

fix: resolve docker build issues #7

Workflow file for this run

on:
push:
branches:
- main
paths:
- cvepred/**/*
- Dockerfile
- "*.ipynb"
- pyproject.toml
- poetry.lock
- .github/workflows/docker.yml
pull_request:
branches:
- main
jobs:
create-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/kpostekk/cvepred:latest
target: api
context: .
cache-from: type=gha
cache-to: type=gha,mode=max