Skip to content

Add Tesla vehicle catalog #6

Add Tesla vehicle catalog

Add Tesla vehicle catalog #6

name: buildah-build-xosc-scenarios-alks
on:
workflow_dispatch:
schedule:
- cron: "20 19 * * 0" # 20:19 UTC every Sunday
push:
paths:
- .github/workflows/buildah-build-xosc-scenarios-alks.yml # Self-trigger
- containers/xosc-scenarios-alks/Dockerfile
env:
REGISTRY: ghcr.io/bounverif
IMAGE_NAME: xosc-scenarios-alks
CONTAINERS_ROOT: /home/runner/.local/share/containers
TMPDIR: /home/runner/.local/share/containers/tmp
permissions:
contents: read
packages: write
jobs:
buildah-build-xosc-scenarios-alks:
runs-on: ubuntu-24.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 2048 # Reserve disk space for repository
remove-dotnet: "true"
remove-android: "true"
remove-haskell: "true"
remove-codeql: "true"
remove-docker-images: "true"
build-mount-path: ${{ env.CONTAINERS_ROOT }} # The remaining space only for container build
- run: mkdir -p $TMPDIR
- name: Checkout repository
uses: actions/checkout@v4
- 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 xosc-scenarios-alks container image
id: build-xosc-scenarios-alks
uses: redhat-actions/buildah-build@v2
with:
platforms: linux/amd64
context: ./containers
image: ${{ env.IMAGE_NAME }}
tags: latest
layers: true
oci: true
extra-args: |
--target xosc-scenarios-alks
containerfiles: |
./containers/xosc-scenarios-alks/Dockerfile
- name: Push to GitHub Container Repository
if: github.ref == 'refs/heads/main'
id: push-ghcr-xosc-scenarios-alks
uses: redhat-actions/push-to-registry@v2
with:
registry: ${{ env.REGISTRY }}
image: ${{ steps.build-xosc-scenarios-alks.outputs.image }}
tags: ${{ steps.build-xosc-scenarios-alks.outputs.tags }}