Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
skyblaster authored Jan 22, 2025
1 parent 3df9abc commit b55be96
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ghcr-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ jobs:
runner: ubuntu-22.04-arm
runs-on: ${{ matrix.runner || 'ubuntu-22.04' }}
steps:
- uses: actions/checkout@v4 # Add this to checkout the repository

- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Extract version from Dockerfile
id: extract_version
run: |
VERSION=$(grep -oP 'caddy:\K[0-9.]+(?=-builder)' Dockerfile | head -n 1)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand Down Expand Up @@ -95,7 +103,7 @@ jobs:
${{ env.GHCR_REPO }}
tags: |
type=raw,value=latest
type=raw,value=v2.9.1
type=raw,value=${{ needs.build.outputs.version }}
- name: Create manifest list and push
working-directory: ${{ runner.temp }}/digests
Expand Down

0 comments on commit b55be96

Please sign in to comment.