Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Provide geonames database as GitHub release asset #10916

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
jvanbruegge marked this conversation as resolved.
Show resolved Hide resolved
Loading