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
on_setup:
image:
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
image: curlimages/curl:7.77.0
stage: .pre
only:
- main
@ -49,9 +47,7 @@ sign:
expire_in: 15 minutes
latest:
image:
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
image: curlimages/curl:7.77.0
stage: publish
only:
- main
@ -64,9 +60,7 @@ latest:
- curl -T "$PLUGIN_FILE" -u "$WEBDAV_USERNAME":"$WEBDAV_PASSWORD" "$PLUGIN_DESTINATION"
release:
image:
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
image: curlimages/curl:7.77.0
stage: publish
only:
- 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'
on_success:
image:
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
image: curlimages/curl:7.77.0
stage: .post
only:
- main
@ -94,9 +86,7 @@ on_success:
when: on_success
on_failure:
image:
name: curlimages/curl:7.76.1
entrypoint: ["/bin/sh", "-c"]
image: curlimages/curl:7.77.0
stage: .post
only:
- 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
# @author opyale