From b8a87ac1793a93f659665301ee84b3f950955b5e Mon Sep 17 00:00:00 2001 From: Hubert Balcerzak Date: Wed, 8 Apr 2020 18:54:08 +0200 Subject: [PATCH] add workflows --- .../build_docker_image_wheelbuilder_linux.yml | 26 +++++++++++++++++++ ...uild_docker_image_wheelbuilder_windows.yml | 26 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/build_docker_image_wheelbuilder_linux.yml create mode 100644 .github/workflows/build_docker_image_wheelbuilder_windows.yml diff --git a/.github/workflows/build_docker_image_wheelbuilder_linux.yml b/.github/workflows/build_docker_image_wheelbuilder_linux.yml new file mode 100644 index 000000000000..1ad2129fb12c --- /dev/null +++ b/.github/workflows/build_docker_image_wheelbuilder_linux.yml @@ -0,0 +1,26 @@ + +name: Build docker image wheelbuilder-linux + +on: + push: + branches: + - 'master' + paths: + - 'scripts/docker_files/docker_file_wheelbuilder_linux/*' + - '.github/workflows/build_docker_image_wheelbuilder_linux.yml' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: docker build scripts/docker_files/docker_file_wheelbuilder_linux/ --tag kratosmultiphysics/kratos-wheelbuilder-linux + - name: Docker Login + uses: azure/docker-login@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Publish the Docker image + run: docker push kratosmultiphysics/kratos-wheelbuilder-linux \ No newline at end of file diff --git a/.github/workflows/build_docker_image_wheelbuilder_windows.yml b/.github/workflows/build_docker_image_wheelbuilder_windows.yml new file mode 100644 index 000000000000..90441b9b86ca --- /dev/null +++ b/.github/workflows/build_docker_image_wheelbuilder_windows.yml @@ -0,0 +1,26 @@ + +name: Build docker image wheelbuilder-windows + +on: + push: + branches: + - 'master' + paths: + - 'scripts/docker_files/docker_file_wheelbuilder_windows/*' + - '.github/workflows/build_docker_image_wheelbuilder_windows.yml' + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: docker build scripts/docker_files/docker_file_wheelbuilder_windows/ --tag kratosmultiphysics/kratos-wheelbuilder-windows + - name: Docker Login + uses: azure/docker-login@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Publish the Docker image + run: docker push kratosmultiphysics/kratos-wheelbuilder-windows