Skip to content

Bump actions/checkout from 3 to 4 #1

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #1

name: Build Docker Images for CI
# this workflow creates the Docker-Images used in the Continuous Integration (CI)
# It intentionally creates all images, such that they are on the same state
on:
push:
branches:
- 'master'
paths:
- 'scripts/docker_files/docker_file_ci_ubuntu_20_04/*'
- 'scripts/docker_files/docker_file_ci_centos_7_python35/*'
- '.github/workflows/build_docker_images_for_ci.yml'
pull_request:
branches:
- 'master'
paths:
- 'scripts/docker_files/docker_file_ci_ubuntu_20_04/*'
- 'scripts/docker_files/docker_file_ci_centos_7_python35/*'
- '.github/workflows/build_docker_images_for_ci.yml'
jobs:
build-docker-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file scripts/docker_files/docker_file_ci_ubuntu_20_04/DockerFile --tag kratosmultiphysics/kratos-image-ci-ubuntu-20-04
- name: Docker Login
uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish the Docker image
if: ${{ github.event_name == 'push'}}
# only push the new image when the changes are merged to master
run: docker push kratosmultiphysics/kratos-image-ci-ubuntu-20-04
build-docker-centos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file scripts/docker_files/docker_file_ci_centos_7_python35/DockerFile --tag kratosmultiphysics/kratos-image-ci-centos7-python35
- name: Docker Login
uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish the Docker image
if: ${{ github.event_name == 'push'}}
# only push the new image when the changes are merged to master
run: docker push kratosmultiphysics/kratos-image-ci-centos7-python35