Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Oct 13, 2023
1 parent 370e295 commit 6d09a0f
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/docker_bullseye_altuser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
# The branches below must be a subset of the branches above
branches: [ develop ]

env:
DOCKER_IMAGE_NAME: rpi-jukebox-rfid-bullseye-altuser

jobs:

prepare:
Expand All @@ -35,10 +38,10 @@ jobs:
push: false
file: ./ci/Dockerfile.bullseye.test_install.armv7
platforms: linux/arm/v7
tags: rpi-jukebox-rfid-bullseye-altuser:latest
tags: ${{ 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/rpi-jukebox-rfid-bullseye-altuser_latest.tar
outputs: type=docker,dest=/tmp/${{ DOCKER_IMAGE_NAME }}_latest.tar
build-args: |
USER_NAME=hans
USER_GROUP=wurst
Expand All @@ -48,8 +51,8 @@ jobs:
- name: Upload Docker Build Image
uses: actions/upload-artifact@v3
with:
name: rpi-jukebox-rfid-bullseye-altuser_latest.tar
path: /tmp/rpi-jukebox-rfid-bullseye-altuser_latest.tar
name: ${{ DOCKER_IMAGE_NAME }}_latest.tar
path: /tmp/${{ DOCKER_IMAGE_NAME }}_latest.tar

test:

Expand All @@ -60,25 +63,25 @@ jobs:
strategy:
fail-fast: false
matrix:
test_Script: [./run_installation_tests.sh, ./run_installation_tests2.sh, ./run_installation_tests3.sh]
test_Script: [run_installation_tests.sh, run_installation_tests2.sh, run_installation_tests3.sh]

steps:

- name: Download Docker Build Image
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: rpi-jukebox-rfid-bullseye-altuser_latest.tar
name: ${{ DOCKER_IMAGE_NAME }}_latest.tar
path: /tmp/

- name: Load Docker Build Image
run: |
docker load --input /tmp/rpi-jukebox-rfid-bullseye-altuser_latest.tar
docker load --input /tmp/${{ DOCKER_IMAGE_NAME }}_latest.tar
- name: Run ${{ matrix.test_Script }} Bullseye ARMv7
uses: tj-actions/docker-run@v2
with:
image: rpi-jukebox-rfid-bullseye-altuser:latest
image: ${{ DOCKER_IMAGE_NAME }}:latest
options: --platform linux/arm/v7
name: ${{ matrix.test_Script }}
args: |
${{ matrix.test_Script }}
"./${{ matrix.test_Script }}"

0 comments on commit 6d09a0f

Please sign in to comment.