From d58a0b7630f526d701651ece89913392c4886870 Mon Sep 17 00:00:00 2001 From: Andrews Sobral Date: Sun, 5 Mar 2023 19:41:19 +0100 Subject: [PATCH] Added missing docker image build workflows --- .../cmake_autobuild_ubuntu_ocv3416.yml | 2 +- .../cmake_autobuild_ubuntu_ocv347.yml | 2 +- .../cmake_autobuild_ubuntu_ocv460.yml | 2 +- .../docker-image_manualbuild_ocv3416.yml | 24 +++++++++++++++++++ .../docker-image_manualbuild_ocv460.yml | 24 +++++++++++++++++++ 5 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/docker-image_manualbuild_ocv3416.yml create mode 100644 .github/workflows/docker-image_manualbuild_ocv460.yml diff --git a/.github/workflows/cmake_autobuild_ubuntu_ocv3416.yml b/.github/workflows/cmake_autobuild_ubuntu_ocv3416.yml index 08b3593ff2..3218bcfd83 100644 --- a/.github/workflows/cmake_autobuild_ubuntu_ocv3416.yml +++ b/.github/workflows/cmake_autobuild_ubuntu_ocv3416.yml @@ -1,4 +1,4 @@ -name: CMake Autobuild on Ubuntu + OpenCV 3.4.16 +name: CMake autobuild on Ubuntu + OpenCV 3.4.16 on: pull_request: diff --git a/.github/workflows/cmake_autobuild_ubuntu_ocv347.yml b/.github/workflows/cmake_autobuild_ubuntu_ocv347.yml index 709892b641..84221f0507 100644 --- a/.github/workflows/cmake_autobuild_ubuntu_ocv347.yml +++ b/.github/workflows/cmake_autobuild_ubuntu_ocv347.yml @@ -1,4 +1,4 @@ -name: CMake Autobuild on Ubuntu + OpenCV 3.4.7 +name: CMake autobuild on Ubuntu + OpenCV 3.4.7 on: pull_request: diff --git a/.github/workflows/cmake_autobuild_ubuntu_ocv460.yml b/.github/workflows/cmake_autobuild_ubuntu_ocv460.yml index f1b9f82205..bfc6eb519f 100644 --- a/.github/workflows/cmake_autobuild_ubuntu_ocv460.yml +++ b/.github/workflows/cmake_autobuild_ubuntu_ocv460.yml @@ -1,4 +1,4 @@ -name: CMake Autobuild on Ubuntu + OpenCV 4.6.0 +name: CMake autobuild on Ubuntu + OpenCV 4.6.0 on: pull_request: diff --git a/.github/workflows/docker-image_manualbuild_ocv3416.yml b/.github/workflows/docker-image_manualbuild_ocv3416.yml new file mode 100644 index 0000000000..c6a6996903 --- /dev/null +++ b/.github/workflows/docker-image_manualbuild_ocv3416.yml @@ -0,0 +1,24 @@ +name: Docker image manual build for OpenCV 3.4.16 + +on: + workflow_dispatch: {} + # push: + # branches: [ "master" ] + # pull_request: + # branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: docker login + env: + DOCKER_USER: ${{secrets.DOCKER_USER}} + DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} + run: | + docker login -u $DOCKER_USER -p $DOCKER_PASSWORD + - name: Build the Docker image + run: docker build --build-arg INCUBATOR_VER=$(date +%Y%m%d-%H%M%S) --file dockerfiles/opencv_3.4.16py38/Dockerfile -t andrewssobral/bgslibrary:opencv_3.4.16py38 . + - name: Docker Push + run: docker push andrewssobral/bgslibrary:opencv_3.4.16py38 diff --git a/.github/workflows/docker-image_manualbuild_ocv460.yml b/.github/workflows/docker-image_manualbuild_ocv460.yml new file mode 100644 index 0000000000..ed27f43e30 --- /dev/null +++ b/.github/workflows/docker-image_manualbuild_ocv460.yml @@ -0,0 +1,24 @@ +name: Docker image manual build for OpenCV 4.6.0 + +on: + workflow_dispatch: {} + # push: + # branches: [ "master" ] + # pull_request: + # branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: docker login + env: + DOCKER_USER: ${{secrets.DOCKER_USER}} + DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} + run: | + docker login -u $DOCKER_USER -p $DOCKER_PASSWORD + - name: Build the Docker image + run: docker build --build-arg INCUBATOR_VER=$(date +%Y%m%d-%H%M%S) --file dockerfiles/opencv_4.6.0py38/Dockerfile -t andrewssobral/bgslibrary:opencv_4.6.0py38 . + - name: Docker Push + run: docker push andrewssobral/bgslibrary:opencv_4.6.0py38