ci: enable multi arch docker builds #37
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: Pull Request | |
on: | |
pull_request: | |
jobs: | |
build_and_test_frontend: | |
uses: ./.github/workflows/frontend.yaml | |
secrets: inherit | |
build_and_test_backend: | |
uses: ./.github/workflows/backend.yaml | |
secrets: inherit | |
test-build-docker: | |
name: Build and publish ready made docker containers | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
cache: "npm" | |
cache-dependency-path: frontend/package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
working-directory: frontend | |
- name: Build API Image | |
id: build-api-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.DOCKER_IMAGE_NAME_API }} | |
tags: ${{ needs.get-distros.outputs.tags }} | |
platforms: linux/arm/v7, linux/arm64/v8, linux/amd64, linux/arm64 | |
containerfiles: | | |
./docker/Dockerfile-api | |
- name: Build Frontend | |
working-directory: frontend | |
run: npx nx build web | |
- name: Build Frontend Image | |
id: build-frontend-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.DOCKER_IMAGE_NAME_FRONTEND }} | |
tags: ${{ needs.get-distros.outputs.tags }} | |
platforms: linux/arm/v7, linux/arm64/v8, linux/amd64, linux/arm64 | |
containerfiles: | | |
./docker/Dockerfile-frontend |