Commit 3fb053b1 authored by Markus Mirz's avatar Markus Mirz
Browse files

gh: use rwth gitlab registry


Signed-off-by: Markus Mirz's avatarMarkus Mirz <mmirz@eonerc.rwth-aachen.de>
parent c5e788a9
......@@ -26,10 +26,42 @@ jobs:
git describe --tags --abbrev=0 --match "v*"
cmake -DWITH_PYTHON=OFF ..
cmake --build .
linux:
name: Build on Linux
runs-on: self-hosted
container: pfensch/dpsim:latest
linux-fedora:
name: Build on Linux fedora
runs-on: ubuntu-latest
container: registry.git.rwth-aachen.de/acs/public/simulation/dpsim/dpsim:dpsim-dev
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Create Build Environment
run: mkdir build
- name: Configure CMake
shell: bash
working-directory: ${{ github.workspace }}/build
run: cmake $GITHUB_WORKSPACE
- name: Build every target
shell: bash
working-directory: ${{ github.workspace }}/build
run: cmake --build .
env:
MAKEFLAGS: "-j2"
- name: Cache build directory
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/build
key: build-cache-${{ github.sha }}
linux-centos:
name: Build on Linux centos
runs-on: ubuntu-latest
container: registry.git.rwth-aachen.de/acs/public/simulation/dpsim/dpsim:dpsim-dev
steps:
- name: Checkout
uses: actions/checkout@v2
......@@ -61,9 +93,9 @@ jobs:
test-binaries:
name: Execute Example
runs-on: self-hosted
container: pfensch/dpsim:latest
needs: [linux]
runs-on: ubuntu-latest
container: registry.git.rwth-aachen.de/acs/public/simulation/dpsim/dpsim:dpsim-centos
needs: [linux-centos]
steps:
- name: Checkout
uses: actions/checkout@v2
......@@ -81,7 +113,7 @@ jobs:
name: Scan Sourcecode with Cppcheck
runs-on: self-hosted
container: pfensch/dpsim:latest
needs: [linux]
needs: [linux-centos]
steps:
- name: Checkout
uses: actions/checkout@v2
......
......@@ -3,17 +3,18 @@ on:
[push]
jobs:
create-docker-container:
create-docker-centos:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to DockerHub
- name: Login to GitLab
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.git.rwth-aachen.de
username: ${{ secrets.RWTH_GITLAB_REGISTRY_USER }}
password: ${{ secrets.RWTH_GITLAB_REGISTRY }}
- name: Build and push
id: docker_build
......@@ -21,4 +22,26 @@ jobs:
with:
file: Packaging/Docker/Dockerfile.dev-centos
push: true
tags: pfensch/dpsim:latest
tags: registry.git.rwth-aachen.de/acs/public/simulation/dpsim/dpsim:dpsim-centos
create-docker-fedora-dev:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to GitLab
uses: docker/login-action@v1
with:
registry: registry.git.rwth-aachen.de
username: ${{ secrets.RWTH_GITLAB_REGISTRY_USER }}
password: ${{ secrets.RWTH_GITLAB_REGISTRY }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
file: Packaging/Docker/Dockerfile.dev
push: true
tags: registry.git.rwth-aachen.de/acs/public/simulation/dpsim/dpsim:dpsim-dev
......@@ -10,7 +10,7 @@ on:
jobs:
generate-docs:
runs-on: ubuntu-latest
container: pfensch/dpsim:latest
container: registry.git.rwth-aachen.de/acs/public/simulation/dpsim/dpsim:dpsim-dev
steps:
- name: Checkout
uses: actions/checkout@v2
......@@ -21,7 +21,7 @@ jobs:
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DWITH_SPDLOG_SUBMODULE=ON
run: cmake $GITHUB_WORKSPACE
- name: Generate docs
run: |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment