Skip to content

Commit

Permalink
Merge branch 'main' into runtime-build
Browse files Browse the repository at this point in the history
  • Loading branch information
doganulus committed Jul 23, 2024
2 parents 7e9e156 + 95efe04 commit 240d7b6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/buildah-build-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,27 @@ jobs:
- name: Set current date as the version
run: echo "AUTOWARE_VERSION=$(date +'%Y%m%d')" >> $GITHUB_ENV

- name: Log in to the GitHub Container registry
uses: redhat-actions/podman-login@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build builder container image
id: build-image
id: build-builder
uses: redhat-actions/buildah-build@v2
with:
platforms: linux/amd64
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.AUTOWARE_VERSION }}-builder latest-builder
layers: true
oci: true
build-args: |
AUTOWARE_VERSION=${{ env.AUTOWARE_VERSION }}
extra-args:
--target autoware-builder
--cache-from=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
--cache-to=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
--cache-ttl=24h
--cache-to=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/cache
containerfiles: |
containers/autoware-builder/Dockerfile
Expand All @@ -69,33 +75,29 @@ jobs:
with:
platforms: linux/amd64
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.AUTOWARE_VERSION }}-builder-with-cache latest-with-cache
tags: ${{ env.AUTOWARE_VERSION }}-builder-with-cache latest-builder-with-cache
layers: true
oci: true
build-args: |
AUTOWARE_VERSION=${{ env.AUTOWARE_VERSION }}
extra-args:
--target autoware-builder-with-cache
--cache-from=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
--cache-to=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
--cache-from=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/cache
containerfiles: |
containers/autoware-builder/Dockerfile
- name: Log in to the GitHub Container registry
uses: redhat-actions/podman-login@v1
- name: Push to GitHub Container Repository
id: push-builder-ghcr
uses: redhat-actions/push-to-registry@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image: ${{ steps.build-builder.outputs.image }}
tags: ${{ steps.build-builder.outputs.tags }}

- name: Push to GitHub Container Repository
id: push-builder-ghcr
id: push-builder-with-cache-ghcr
uses: redhat-actions/push-to-registry@v2
with:
registry: ${{ env.REGISTRY }}
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
extra-args: |
- name: Print image url
run: echo "Image pushed to ${{ steps.push-builder-ghcr.outputs.registry-paths }}"

image: ${{ steps.build-builder-with-cache.outputs.image }}
tags: ${{ steps.build-builder-with-cache.outputs.tags }}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Autoware Container Images

This repository hosts a collection of experimental Autoware container images. These images are designed to provide a convenient and reproducible environment for developing and running Autoware, an open-source software stack for autonomous driving.

## License

This repository is licensed under the [Apache License 2.0](LICENSE).
4 changes: 2 additions & 2 deletions containers/autoware-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ RUN --mount=type=bind,from=autoware-source,source=${AUTOWARE_SOURCE_DIR},target=
export DEBIAN_FRONTEND=noninteractive && \
apt update && \
rosdep init && \
rosdep update && \
rosdep install -y \
rosdep update -q && \
rosdep install -qy \
--from-paths ${AUTOWARE_SOURCE_DIR} \
--ignore-src \
--rosdistro humble \
Expand Down

0 comments on commit 240d7b6

Please sign in to comment.