🚑 Fix CI/CD

This commit is contained in:
SebClem 2022-05-01 15:52:34 +02:00
parent c6af5e8e63
commit dee239c0aa
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
3 changed files with 22 additions and 7 deletions

View File

@ -18,15 +18,26 @@ jobs:
build-dockers: build-dockers:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: true fail-fast: false
matrix: matrix:
arch: [ aarch64, amd64, armv7, i386 ] arch: [ aarch64, amd64, armv7, i386, armhf ]
include:
- arch: aarch64
arch_value: linux/arm64/v8
- arch: amd64
arch_value: linux/amd64
- arch: armv7
arch_value: linux/arm/v7
- arch: i386
arch_value: linux/386
- arch: armhf
arch_value: linux/arm/v6
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Add Qemu-user-static ${{matrix.arch}} - name: Set up QEMU
run: docker run --rm --privileged hassioaddons/qemu-user-static:latest uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx ${{matrix.arch}} - name: Set up Docker Buildx ${{matrix.arch}}
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
@ -93,3 +104,4 @@ jobs:
cache-from: type=registry,ref=${{env.REPOSITORY}}/${{env.IMAGE}}/${{matrix.arch}}:latest cache-from: type=registry,ref=${{env.REPOSITORY}}/${{env.IMAGE}}/${{matrix.arch}}:latest
cache-to: type=inline cache-to: type=inline
context: ./${{env.TARGET}}/ context: ./${{env.TARGET}}/
platforms: ${{ matrix.arch_value }}

View File

@ -1 +1 @@
10.0.2 11.1.2

View File

@ -6,8 +6,11 @@ COPY rootfs/etc /etc/
COPY rootfs/usr /usr/ COPY rootfs/usr /usr/
# Setup base # Setup base
RUN apk add --no-cache \ RUN apk add --no-cache nodejs-current
nodejs-current
# Fix for arm/v7
RUN mkdir -p /usr/local/sbin/
RUN ln -s /usr/bin/node /usr/local/sbin/node
# Copy only package*.json # Copy only package*.json
COPY rootfs/opt/nextcloud_backup/package*.json /opt/nextcloud_backup/ COPY rootfs/opt/nextcloud_backup/package*.json /opt/nextcloud_backup/