use alpine:latest for upload artifacts
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
@@ -61,10 +61,10 @@ steps:
|
||||
path: /artifacts
|
||||
|
||||
- name: upload-artifacts
|
||||
image: ubuntu:latest
|
||||
image: alpine:latest
|
||||
depends_on: [arch-build, debian-build, fedora-build]
|
||||
commands:
|
||||
- apt update && apt install -y curl jq
|
||||
- apk add jq curl
|
||||
- |
|
||||
LATEST_TAG=$(curl -s "https://gitea.akshun-lab.cc/api/v1/repos/aggarwalakshun/python-setup/releases/latest" | jq -r '.tag_name')
|
||||
echo "Latest tag: $LATEST_TAG"
|
||||
@@ -77,12 +77,9 @@ steps:
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary @"$file"
|
||||
done
|
||||
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea-token
|
||||
GITEA_SERVER:
|
||||
from_secret: gitea-server
|
||||
from_secret: GITEA_TOKEN
|
||||
volumes:
|
||||
- name: artifacts
|
||||
path: /artifacts
|
||||
|
||||
Reference in New Issue
Block a user