Skip to content

Commit

Permalink
Set platform args explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
doganulus committed Jul 22, 2024
1 parent ce48d64 commit 1f42edb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/builder-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.AUTOWARE_VERSION }}-builder latest
layers: true
oci: true
build-args: |
AUTOWARE_VERSION=${{ env.AUTOWARE_VERSION }}
extra-args:
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM ubuntu:22.04 AS autoware-base
FROM docker.io/library/ubuntu:22.04 AS autoware-base

ARG TARGETARCH=amd64
ARG TARGETOS=linux
ARG TARGETPLATFORM=linux/amd64

ARG TARGETARCH
ENV ID=ubuntu
ENV VERSION_ID=22.04
ENV CACHEMOUNT_PREFIX=/${TARGETARCH}/${ID}${VERSION_ID}
Expand Down

0 comments on commit 1f42edb

Please sign in to comment.