Fixing CI (#936)

Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/936
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: opyale <opyale@noreply.codeberg.org>
Co-committed-by: opyale <opyale@noreply.codeberg.org>
This commit is contained in:
opyale 2021-06-13 19:38:28 +02:00 committed by M M Arif
parent d567a012d8
commit 8d0df59bfe
2 changed files with 6 additions and 16 deletions

View File

@ -4,9 +4,7 @@ stages:
- publish - publish
on_setup: on_setup:
image: image: curlimages/curl:7.77.0
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
stage: .pre stage: .pre
only: only:
- main - main
@ -49,9 +47,7 @@ sign:
expire_in: 15 minutes expire_in: 15 minutes
latest: latest:
image: image: curlimages/curl:7.77.0
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
stage: publish stage: publish
only: only:
- main - main
@ -64,9 +60,7 @@ latest:
- curl -T "$PLUGIN_FILE" -u "$WEBDAV_USERNAME":"$WEBDAV_PASSWORD" "$PLUGIN_DESTINATION" - curl -T "$PLUGIN_FILE" -u "$WEBDAV_USERNAME":"$WEBDAV_PASSWORD" "$PLUGIN_DESTINATION"
release: release:
image: image: curlimages/curl:7.77.0
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
stage: publish stage: publish
only: only:
- tags - tags
@ -78,9 +72,7 @@ release:
- curl -T "$PLUGIN_FILE" -u "$WEBDAV_USERNAME":"$WEBDAV_PASSWORD" 'https://cloud.swatian.com/remote.php/dav/files/GitNexBot/gitnex/releases/'"$CI_COMMIT_REF_NAME"'.apk' - curl -T "$PLUGIN_FILE" -u "$WEBDAV_USERNAME":"$WEBDAV_PASSWORD" 'https://cloud.swatian.com/remote.php/dav/files/GitNexBot/gitnex/releases/'"$CI_COMMIT_REF_NAME"'.apk'
on_success: on_success:
image: image: curlimages/curl:7.77.0
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
stage: .post stage: .post
only: only:
- main - main
@ -94,9 +86,7 @@ on_success:
when: on_success when: on_success
on_failure: on_failure:
image: image: curlimages/curl:7.77.0
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
stage: .post stage: .post
only: only:
- main - main

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# Environment variables which have to be set in order for this to work properly # Environment variables which have to be set in order for this to work properly
# @author opyale # @author opyale