Containerize In-Vehicle Stack - Chariott #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Microsoft Corporation. | |
# Licensed under the Apache License, Version 2.0 | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Containerize In-Vehicle Stack - Chariott | |
on: | |
workflow_dispatch: | |
env: | |
CHARIOTT_VERSION: 0.2.1 | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- name: Set up Docker buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
install: true | |
- name: Login to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout Chariott | |
uses: actions/checkout@v2 | |
with: | |
repository: eclipse-chariott/chariott | |
ref: ${{ env.CHARIOTT_VERSION }} | |
- name: Build and push multi-platform Docker image for Chariott Service Discovery | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: Dockerfile.service_discovery.multi | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ghcr.io/eclipse-sdv-blueprints/software-orchestration/eclipse-chariott/service-discovery:${{ env.CHARIOTT_VERSION }} |