forked from MiczFlor/RPi-Jukebox-RFID
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f4d397
commit 6498619
Showing
2 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,9 @@ jobs: | |
outputs: | ||
runs_on: ubuntu-latest | ||
|
||
# Definition of the matrix values for the subsequent jobs | ||
matrix_debian_version: "['bullseye', 'buster']" | ||
matrix_username: "['pi', 'hans']" | ||
matrix_username: "['hans']" #"['pi', 'hans']" | ||
matrix_test_script: "['run_installation_tests.sh', 'run_installation_tests2.sh', 'run_installation_tests3.sh']" | ||
|
||
cache_scope: ${{ steps.set-cache_scope.outputs.cache_scope }} | ||
|
@@ -59,6 +60,11 @@ jobs: | |
build: | ||
needs: [prepare] | ||
runs-on: ${{ needs.prepare.outputs.runs_on }} | ||
services: | ||
registry: | ||
image: registry:2 | ||
ports: | ||
- 5000:5000 | ||
|
||
strategy: | ||
fail-fast: false | ||
|
@@ -73,21 +79,26 @@ jobs: | |
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
with: | ||
# network=host driver-opt needed to push to local registry | ||
driver-opts: network=host | ||
|
||
- name: Build Image ARMv7 - Base | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
load: false | ||
push: false | ||
push: true | ||
file: ./ci/Dockerfile.debian.test_install_unified.armv7 | ||
target: user | ||
target: test | ||
platforms: linux/arm/v7 | ||
tags: ${{ format( needs.prepare.outputs.image_tag_name, matrix.debian_version) }}-base | ||
tags: localhost:5000/${{ format( needs.prepare.outputs.image_tag_name, matrix.debian_version) }}-base | ||
cache-from: type=gha,scope=${{ format( needs.prepare.outputs.cache_scope, matrix.debian_version) }} | ||
cache-to: type=gha,mode=max,scope=${{ format( needs.prepare.outputs.cache_scope, matrix.debian_version) }} | ||
build-args: | | ||
DEBIAN_VERSION=${{ matrix.debian_version }} | ||
GIT_BRANCH=${{ github.ref_name }} | ||
GIT_URL=${{ github.server_url }}/${{ github.repository }} | ||
- name: Build Image ARMv7 - Update | ||
|
@@ -104,9 +115,8 @@ jobs: | |
# DON'T use 'cache-to' here as then the layer is cached and this build would be useless | ||
outputs: type=docker,dest=${{ format( needs.prepare.outputs.image_file_path, matrix.debian_version) }} | ||
build-args: | | ||
DEBIAN_VERSION=${{ matrix.debian_version }} | ||
GIT_BRANCH=${{ github.ref_name }} | ||
GIT_URL=${{ github.server_url }}/${{ github.repository }} | ||
BASE_TEST_IMAGE="localhost:5000/${{ format( needs.prepare.outputs.image_tag_name, matrix.debian_version) }}-base" | ||
- name: Cache Check Docker Image | ||
uses: actions/cache/restore@v3 | ||
|
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