Skip to content

Image build fix

Image build fix #5

name: Build and push Docker image
on:
# For the manual run.
workflow_dispatch:
push:
branches: [ "master" ]
paths:
- 'docker/build_image/**'
- '.github/workflows/docker-build-image.yml'
pull_request:
branches: [ "master" ]
paths:
- 'docker/build_image/**'
- '.github/workflows/docker-build-image.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: artiomn
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Build the Docker image for KNP build
working-directory: docker/build-image
run: docker build . --file Dockerfile --tag knp-build-image-amd64