Skip to content

env korrigiert

env korrigiert #211

name: Test Install Scripts for Bullseye (alternative user) on Docker
on:
schedule:
# run at 5 every sunday
- cron: '0 5 * * 0'
push:
branches-ignore:
- 'future3/**'
pull_request:
# The branches below must be a subset of the branches above
branches: [ develop ]
env:
DOCKER_IMAGE_NAME: rpi-jukebox-rfid-bullseye-altuser
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build Bullseye ARMv7 altuser
uses: docker/build-push-action@v5
with:
context: .
load: true
push: false
file: ./ci/Dockerfile.bullseye.test_install.armv7
platforms: linux/arm/v7
tags: ${{ env.DOCKER_IMAGE_NAME }}:latest
cache-from: type=gha,scope=${{ github.ref_name }}-bullseye-altuser
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-bullseye-altuser
outputs: type=docker,dest=/tmp/${{ env.DOCKER_IMAGE_NAME }}_latest.tar
build-args: |
USER_NAME=hans
USER_GROUP=wurst
GIT_BRANCH=${{ github.ref_name }}
GIT_URL=${{ github.server_url }}/${{ github.repository }}
- name: Upload Docker Build Image
uses: actions/upload-artifact@v3
with:
name: ${{ env.DOCKER_IMAGE_NAME }}_latest.tar
path: /tmp/${{ env.DOCKER_IMAGE_NAME }}_latest.tar
test:
needs: prepare
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test_Script: [run_installation_tests.sh, run_installation_tests2.sh, run_installation_tests3.sh]
steps:
- name: Download Docker Build Image
uses: actions/download-artifact@v3
with:
name: ${{ env.DOCKER_IMAGE_NAME }}_latest.tar
path: /tmp/
- name: Load Docker Build Image
run: |
docker load --input /tmp/${{ env.DOCKER_IMAGE_NAME }}_latest.tar
- name: Run ${{ matrix.test_Script }} Bullseye ARMv7
uses: tj-actions/docker-run@v2
with:
image: ${{ env.DOCKER_IMAGE_NAME }}:latest
options: --platform linux/arm/v7
name: ${{ matrix.test_Script }}
args: |
"./${{ matrix.test_Script }}"