ci: switch dummy builder to arm runner (#1419) #8
Workflow file for this run
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
name: Build and Push Docker Images Dummy | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
env: | |
UBUNTU_VERSION: "ubuntu-24.04" | |
VERSION: dummy | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-24.04-arm | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Get version and Create .meta file | |
run: | | |
echo "VERSION=$(git describe --tags --always)" >> $GITHUB_ENV | |
echo "BUILD=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
echo "CISO_ASSISTANT_VERSION=$(git describe --tags --always)" > .meta | |
echo "CISO_ASSISTANT_BUILD=$(git rev-parse --short HEAD)" >> .meta | |
cp .meta ./backend/ | |
cp .meta ./backend/ciso_assistant/ | |
- name: Build Backend ARM Docker Image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./backend | |
file: ./backend/Dockerfile | |
load: true | |
platforms: linux/arm64 | |
tags: ghcr.io/${{ github.repository }}/backend:arm64-${{ env.VERSION }} | |
- name: Build Frontend ARM Docker Image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./frontend | |
file: ./frontend/Dockerfile | |
load: true | |
platforms: linux/arm64 | |
tags: ghcr.io/${{ github.repository }}/frontend:arm64-${{ env.VERSION }} | |
- name: Build Backend Docker Image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./backend | |
file: ./backend/Dockerfile | |
load: true | |
platforms: linux/amd64 | |
tags: ghcr.io/${{ github.repository }}/backend:${{ env.VERSION }} | |
- name: Build Frontend Docker Image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./frontend | |
file: ./frontend/Dockerfile | |
load: true | |
platforms: linux/amd64 | |
tags: ghcr.io/${{ github.repository }}/frontend:${{ env.VERSION }} |