Skip to content

Commit

Permalink
ci: Provide geonames database as GitHub release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Jul 6, 2024
1 parent 59cdbdc commit 9c38bf8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:
cancel-in-progress: true

permissions:
contents: write
packages: write

jobs:
Expand Down Expand Up @@ -119,6 +120,7 @@ jobs:
with:
context: ${{ matrix.context }}
file: ${{ matrix.file }}
load: ${{ github.event_name == 'release' }}
platforms: ${{ matrix.platforms }}
# Skip pushing when PR from a fork
push: ${{ !github.event.pull_request.head.repo.fork }}
Expand All @@ -132,3 +134,16 @@ jobs:
BUILD_IMAGE=${{ github.event_name == 'release' && github.ref_name || steps.metadata.outputs.tags }}
BUILD_SOURCE_REF=${{ github.ref_name }}
BUILD_SOURCE_COMMIT=${{ github.sha }}
- name: Extract geodata
if: ${{ github.event_name == 'release' && matrix.image == 'immich-server' }}
run: |
id="$(docker create ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:${{ github.ref_name }})"
docker cp "$id":/usr/bin/resources geodata
zip -r geodata.zip geodata
- name: Upload geodata as release asset
if: ${{ github.event_name == 'release' && matrix.image == 'immich-server' }}
uses: softprops/action-gh-release@v2
with:
files: geodata.zip

0 comments on commit 9c38bf8

Please sign in to comment.