mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 17:39:42 +00:00
new podman-based pipeline
This commit is contained in:
parent
5865cd473f
commit
6ae427e82c
133
.drone.yml
133
.drone.yml
|
@ -1,98 +1,55 @@
|
|||
kind: pipeline
|
||||
type: exec
|
||||
name: Continuous Integration
|
||||
|
||||
environment:
|
||||
test: echo hi
|
||||
|
||||
steps:
|
||||
- name: Test
|
||||
commands:
|
||||
- $($test)
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
node:
|
||||
server: builder
|
||||
|
||||
#---
|
||||
|
||||
#kind: pipeline
|
||||
#type: exec
|
||||
#name: Release
|
||||
#name: Continuous Integration
|
||||
#
|
||||
#steps:
|
||||
# - name: Build Intermediate Release Artifact
|
||||
# commands:
|
||||
# # Prepare SSH keys
|
||||
# - eval `ssh-agent -s`
|
||||
# - echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||
# # Build intermediate release artifact
|
||||
# - ssh builder@isolated "cd src && flutter build apk --release"
|
||||
# # Fetch the release artifact
|
||||
# - scp builder@isolated:src/build/app/outputs/flutter-apk/app-release.apk .
|
||||
#
|
||||
# - name: Sign Release Artifact for Standalone Use
|
||||
# commands:
|
||||
# # Get app build ID
|
||||
# - export APP_BUILD_ID=`yq '.version' pubspec.yaml | cut -d "+" -f2`
|
||||
# # Prepare SSH keys
|
||||
# - eval `ssh-agent -s`
|
||||
# - echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||
# # Upload and sign the artifact
|
||||
# - scp app-release.apk builder@isolated:~
|
||||
# - ssh builder@isolated "zipalign -f -v 4 app-release.apk standalone_app-release.apk && apksigner sign --ks /run/secrets/standalone-keystore --ks-key-alias standalone --ks-pass file:/run/secrets/standalone-keystore-pass standalone_app-release.apk"
|
||||
# # Fetch the signed artifact
|
||||
# - scp builder@isolated:standalone_app-release.apk standalone_pro.kherel.selfprivacy_"$APP_BUILD_ID".apk
|
||||
# - scp builder@isolated:standalone_app-release.apk.idsig standalone_pro.kherel.selfprivacy_"$APP_BUILD_ID".apk.idsig
|
||||
# environment:
|
||||
# SSH_PRIVATE_KEY:
|
||||
# from_secret: SSH_PRIVATE_KEY
|
||||
#
|
||||
# - name: Sign Release Artifact for F-Droid Repository
|
||||
# commands:
|
||||
# # Get app build ID
|
||||
# - export APP_BUILD_ID=`yq '.version' pubspec.yaml | cut -d "+" -f2`
|
||||
# # Prepare SSH keys
|
||||
# - eval `ssh-agent -s`
|
||||
# - echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||
# # Upload and sign the artifact
|
||||
# - scp app-release.apk fdroid@isolated:unsigned/pro.kherel.selfprivacy_"$APP_BUILD_ID".apk
|
||||
# - ssh fdroid@isolated 'export FDROID_KEY_STORE_PASS=`cat /run/secrets/fdroid-keystore-pass` && fdroid publish && fdroid update'
|
||||
# - scp -r fdroid@isolated:repo .
|
||||
# environment:
|
||||
# SSH_PRIVATE_KEY:
|
||||
# from_secret: SSH_PRIVATE_KEY
|
||||
#
|
||||
# - name: Create Release on Gitea Repository
|
||||
# commands:
|
||||
# # Get app build ID
|
||||
# - export APP_BUILD_ID=`yq '.version' pubspec.yaml | cut -d "+" -f2`
|
||||
# # Prepare tea CLI
|
||||
# - tea login add --token "$GITEA_RELEASE_TOKEN" --url https://git.selfprivacy.org
|
||||
# # Create release and push artifacts
|
||||
# - tea releases create --repo "$DRONE_REPO" --tag "$DRONE_SEMVER" --title "$DRONE_SEMVER" --asset standalone_pro.kherel.selfprivacy_"$APP_BUILD_ID".apk --asset standalone_pro.kherel.selfprivacy_"$APP_BUILD_ID".apk.idsig
|
||||
# environment:
|
||||
# GITEA_RELEASE_TOKEN:
|
||||
# from_secret: GITEA_RELEASE_TOKEN
|
||||
#
|
||||
# - name: Deploy F-Droid Repository
|
||||
# commands:
|
||||
# # Prepare SSH keys
|
||||
# - eval `ssh-agent -s`
|
||||
# - echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||
# # Copy the repository to the production server
|
||||
# - scp -r repo/* deployer@production:/var/www/fdroid.selfprivacy.org
|
||||
# environment:
|
||||
# SSH_PRIVATE_KEY:
|
||||
# from_secret: SSH_PRIVATE_KEY
|
||||
#
|
||||
#trigger:
|
||||
# event:
|
||||
# - tag
|
||||
# - push
|
||||
# - pull_request
|
||||
#
|
||||
#node:
|
||||
# server: builder
|
||||
#
|
||||
#---
|
||||
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: Release
|
||||
|
||||
steps:
|
||||
- name: Build Intermediate Linux Release Artifact (Binary)
|
||||
commands:
|
||||
- ./ci.sh --build-linux
|
||||
|
||||
- name: Build Intermediate Android Release Artifact (.APK)
|
||||
commands:
|
||||
- ./ci.sh --build-apk
|
||||
|
||||
- name: Sign Android Release Artifact (.APK) for Standalone Use
|
||||
commands:
|
||||
- ./ci.sh --sign-apk-standalone
|
||||
|
||||
- name: Sign Android Release Artifact (.APK) for F-Droid Repository
|
||||
commands:
|
||||
- ./ci.sh --sign-apk-fdroid
|
||||
|
||||
- name: Package Linux AppImage Artifact
|
||||
commands:
|
||||
- ./ci.sh --package-linux-appimage
|
||||
|
||||
- name: Package Linux Flatpak Artifact
|
||||
commands:
|
||||
- ./ci.sh --package-linux-flatpak
|
||||
|
||||
- name: Package Linux Archive Artifact
|
||||
commands:
|
||||
- ./ci.sh --package-linux-archive
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
node:
|
||||
server: builder
|
||||
|
|
Loading…
Reference in a new issue