Skip to content

Commit

Permalink
outputs angepasst fuer id uebergabe
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Oct 16, 2023
1 parent e48c6f1 commit 1002271
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/docker_bullseye_unified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

outputs:
image_name: ${{ steps.get-image-name.outputs.image_name }}
cache_key: ${{ steps.cache-restore.outputs.cache-primary-key }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -66,30 +67,21 @@ jobs:
cache-from: type=gha,scope=${{ env.CACHE_SCOPE }}
outputs: type=docker,dest=${{ env._PATH_DOCKER_IMAGE_TAR }}

- run: docker image ls

- id: get-image-name
run: |
docker image ls
imageName=${{ fromJSON(steps.docker-build.outputs.metadata)['image.name'] }}
echo "::set-output name=image_name::$imageName"
- run: echo "runner_temp ${{ runner.temp }}"
- run: echo "github_workspace ${{ github.workspace }}"
- run: ls -l ./
- run: ls -l ~

- run: echo "hashFiles ${{ hashFiles( env._PATH_DOCKER_IMAGE_TAR ) }}"
- run: echo "hashFiles ${{ hashFiles( './tmp/rpi-jukebox-rfid-bullseye.tar' ) }}"


- name: Cache Check Docker Image
uses: actions/cache/restore@v3
id: cache-restore
with:
lookup-only: true
key: ${{ env.DOCKER_IMAGE_NAME }}-${{ hashFiles( env._PATH_DOCKER_IMAGE_TAR ) }}
key: ${{ env.DOCKER_IMAGE_NAME }}-${{ steps.docker-build.outputs.ImageID }}
path: ${{ env._PATH_DOCKER_IMAGE_TAR }}


- name: Cache Save Docker Image
uses: actions/cache/save@v3
if: ${{ ! steps.cache-restore.outputs.cache-hit }}
Expand Down Expand Up @@ -118,7 +110,7 @@ jobs:
- name: Cache Restore Docker Image
uses: actions/cache/restore@v3
with:
key: ${{ env.DOCKER_IMAGE_NAME }}-${{ hashFiles( env._PATH_DOCKER_IMAGE_TAR ) }}
key: ${{ needs.prepare.outputs.cache_key }}
path: ${{ env._PATH_DOCKER_IMAGE_TAR }}
fail-on-cache-miss: true

Expand All @@ -133,7 +125,7 @@ jobs:
- name: Run ${{ matrix.test_Script }} Bullseye ARMv7
uses: tj-actions/docker-run@v2
with:
image: ${{needs.prepare.outputs.image_name}}
image: ${{ needs.prepare.outputs.image_name }}
options: --platform linux/arm/v7 --user ${{ matrix.username }}
name: ${{ matrix.test_Script }}
args: |
Expand Down

0 comments on commit 1002271

Please sign in to comment.