forked from eclipse-sdv-blueprints/software-orchestration
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.47 KB
/
containerize-invehicle-stack-freyja-application.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (c) Microsoft Corporation.
# Licensed under the Apache License, Version 2.0
# SPDX-License-Identifier: Apache-2.0
name: Containerize In-Vehicle Stack - Freyja Apps
on:
workflow_dispatch:
env:
FREYJA_APPS_VERSION: 0.1.0
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 Freyja Apps Repository
uses: actions/checkout@v2
with:
repository: eclipse-ibeji/ibeji-example-applications
ref: ${{ env.FREYJA_APPS_VERSION }}
submodules: recursive
- name: Build and push multi-platform Docker image for Freyja Application
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.freyja_apps.multi
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/eclipse-sdv-blueprints/software-orchestration/eclipse-freyja/local-with-ibeji:${{ env.FREYJA_APPS_VERSION }}
build-args: |
APP_NAME=freyja-ibeji-integration-app
CONFIG_PATH=.freyja/smart_trailer/config