Skip to content

Commit

Permalink
Move docker build to its own action
Browse files Browse the repository at this point in the history
  • Loading branch information
ipadjen committed Nov 2, 2023
1 parent d974418 commit 3e77fa1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build Docker

on:
push:
workflow_dispatch:

jobs:
build_docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker registry login
run: echo "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
- name: Build the Docker image
run: docker build --build-arg JOBS=2 . --file docker/city4cfd.dockerfile --tag tudelft3d/city4cfd:latest
11 changes: 1 addition & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Build

on:
push:
Expand Down Expand Up @@ -66,12 +66,3 @@ jobs:
cd Release
cmake .. ${{ steps.vcpkg.outputs.vcpkg-cmake-config }}
cmake --build . --parallel 4 --config Release
build_docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker registry login
run: echo "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
- name: Build the Docker image
run: docker build --build-arg JOBS=2 . --file docker/city4cfd.dockerfile --tag tudelft3d/city4cfd:latest

0 comments on commit 3e77fa1

Please sign in to comment.