Skip to content

Commit

Permalink
Testing some things
Browse files Browse the repository at this point in the history
  • Loading branch information
tankerkiller125 committed Jan 4, 2025
1 parent cddd086 commit b2c64ba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker-publish-rootless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,17 @@ jobs:
- linux/arm/v7

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
branch=${{ github.event.pull_request.number || github.ref }}
echo "BRANCH=${branch//\//-}" >> $GITHUB_ENV
echo ${{ env.PLATFORM_PAIR }}-${{ env.BRANCH }}-rootless
- name: Docker meta
id: meta
Expand Down Expand Up @@ -89,7 +96,7 @@ jobs:
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,"name=${{ env.DOCKERHUB_REPO }},${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=true
cache-from: type=registry,ref=ghcr.io/sysadminsmedia/devcache
cache-from: type=registry,ref=ghcr.io/sysadminsmedia/devcache:${{ env.PLATFORM_PAIR }}-${{ env.BRANCH }}-rootless
cache-to: type=registry,ref=ghcr.io/sysadminsmedia/devcache,mode=max

- name: Export digest
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
branch=${{ github.event.pull_request.number || github.ref }}
echo "BRANCH=${branch//\//-}" >> $GITHUB_ENV
echo ${{ env.PLATFORM_PAIR }}-${{ env.BRANCH }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand Down

0 comments on commit b2c64ba

Please sign in to comment.