Skip to content

Commit

Permalink
Update CI/CD to build development image
Browse files Browse the repository at this point in the history
  • Loading branch information
julianschuler committed Jun 17, 2024
1 parent 3af0e02 commit 0b2a289
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ FROM ghcr.io/siemens/kas/kas:latest
LABEL org.opencontainers.image.source https://github.com/HULKs/meta-nao

COPY aldebaran_binaries.tar.gz /

RUN sudo apt-get update && sudo apt-get install --no-install-recommends --yes \
buildah \
qemu-user-static
19 changes: 18 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,29 @@ jobs:
run: kas checkout meta-nao/kas/base.yml:meta-nao/kas/hulks.yml
- name: Populate aldebaran_binaries.tar.gz
run: mkdir -p meta-nao/meta/recipes-support/aldebaran/aldebaran-binaries/ && cp /aldebaran_binaries.tar.gz meta-nao/meta/recipes-support/aldebaran/aldebaran-binaries/
- name: Build image
- name: Build NAO image
run: kas build --target nao-image --cmd build meta-nao/kas/base.yml:meta-nao/kas/hulks.yml
- name: Build SDK (x86_64)
run: kas build --target nao-image --cmd populate_sdk meta-nao/kas/base.yml:meta-nao/kas/hulks.yml
- name: Build SDK (aarch64)
run: kas build --target nao-image --cmd populate_sdk meta-nao/kas/base.yml:meta-nao/kas/hulks.yml:meta-nao/kas/aarch64.yml
- name: Build development image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: naosdk
tags: latest ${{ github.sha }} ${{ github.ref_name }}
archs: amd64, arm64
containerfiles: ./Containerfile
build-args: version=${{ github.ref_name }}
- name: Push development image to ghcr.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/${{ github.repository_owner }}
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 0b2a289

Please sign in to comment.