Skip to content

Commit

Permalink
add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
HubertBalcerzak committed Apr 8, 2020
1 parent 5d33e77 commit b8a87ac
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build_docker_image_wheelbuilder_linux.yml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions .github/workflows/build_docker_image_wheelbuilder_windows.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b8a87ac

Please sign in to comment.