Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuhtz committed Jul 10, 2024
1 parent 6acdae4 commit ba7c223
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ jobs:
platform: [ linux/amd64, linux/arm64 ]

steps:
- name: Force Node 20
run: echo "FORCE_JAVASCRIPT_ACTIONS_TO_NODE20=true" >> $GITHUB_ENV

- name: Create a variable with platform '${{ matrix.platform }}' value
run: echo "PLATFORM=${{ matrix.platform }}" >> $GITHUB_ENV

- name: Swap / for - in '${{ matrix.platform }}' and create local_platform variable
id: local_platform
run: |
LOCAL_PLATFORM="${PLATFORM//\//-}"
echo "LOCAL_PLATFORM=${LOCAL_PLATFORM}" >> $GITHUB_ENV
echo "local_platform=${LOCAL_PLATFORM}" >> $GITHUB_STATE
- name: checkout repo
uses: actions/checkout@v4

Expand All @@ -31,21 +44,8 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Create a variable with platform '${{ matrix.platform }}' value
run: echo "PLATFORM=${{ matrix.platform }}" >> $GITHUB_ENV

- name: Swap / for - in '${{ matrix.platform }}' and create local_platform variable
id: local_platform
run: |
LOCAL_PLATFORM="${PLATFORM//\//-}"
echo "LOCAL_PLATFORM=${LOCAL_PLATFORM}" >> $GITHUB_ENV
echo "local_platform=${LOCAL_PLATFORM}" >> $GITHUB_STATE
- name: Cache Docker layers
uses: actions/cache@v3
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true

with:
path: /tmp/.buildx-cache--${{ steps.local_platform.outputs.local_platform }}-${{ matrix.directory }}
# key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down

0 comments on commit ba7c223

Please sign in to comment.