Browse Source

Push packages to gitlab registry

technical/upgrade-exoplayer
Georg Krause 2 years ago
parent
commit
fdf9198a76
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
  1. 12
      .gitlab-ci.yml

12
.gitlab-ci.yml

@ -136,7 +136,7 @@ build-bleeding-edge:
- tags - tags
.deploy: .deploy:
image: debian image: curlimages/curl:latest
before_script: before_script:
- apt update && apt -y install openssh-server - apt update && apt -y install openssh-server
@ -145,13 +145,11 @@ deploy-develop:
stage: deploy stage: deploy
only: only:
- develop - develop
variables:
FILE: app/build/outputs/apk/debug/app-debug.apk
PACKAGE: audio.funkwhale.ffa.dev
script: script:
- eval `ssh-agent -s` - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file $FILE "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/$PACKAGE/$CI_COMMIT_SHORT_SHA/$PACKAGE-$CI_COMMIT_SHORT_SHA.apk"'
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- scp -P22103 -o StrictHostKeyChecking=no app/build/outputs/apk/debug/app-debug.apk fdroid@apps.funkwhale.audio:/srv/fdroid/fdroid/develop/repo/audio.funkwhale.ffa.dev-$CI_COMMIT_SHORT_SHA.apk
- scp -P22103 -o StrictHostKeyChecking=no app/build/outputs/apk/debug/output-metadata.json fdroid@apps.funkwhale.audio:/srv/fdroid/fdroid/develop/output-metadata.json
- scp -P22103 -o StrictHostKeyChecking=no metadata/audio.funkwhale.android.dev.yml fdroid@apps.funkwhale.audio:/srv/fdroid/fdroid/develop/metadata/audio.funkwhale.ffa.dev.yml
- ssh -p22103 -o StrictHostKeyChecking=no fdroid@apps.funkwhale.audio 'docker run --rm -u $(id -u):$(id -g) -v /srv/fdroid/fdroid/develop:/repo registry.gitlab.com/fdroid/docker-executable-fdroidserver:master update'
deploy-release: deploy-release:
extends: .deploy extends: .deploy

Loading…
Cancel
Save