Skip to content

Commit

Permalink
Add stages to current Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ll-nick committed Oct 25, 2024
1 parent ae7038e commit 73f816c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-push-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/kit-mrt/arbitration_graphs:latest
target: install

5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:22.04 AS base

ARG DEBIAN_FRONTEND=noninteractive

Expand All @@ -25,6 +25,9 @@ RUN git clone https://github.com/KIT-MRT/util_caching.git /tmp/util_caching && \

# Install arbitration_graphs
COPY . /tmp/arbitration_graphs

FROM base AS install

RUN mkdir /tmp/arbitration_graphs/build && \
cd /tmp/arbitration_graphs/build && \
cmake .. && \
Expand Down

0 comments on commit 73f816c

Please sign in to comment.