[CI/CD] Restored awscli
process for update-debian-oldstable-packages
.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
The `s3fs` flow seems to have problems on the Debian oldstable image.
This commit is contained in:
parent
d4c790925b
commit
3e00a05301
1 changed files with 4 additions and 11 deletions
15
.drone.yml
15
.drone.yml
|
@ -432,13 +432,11 @@ steps:
|
||||||
|
|
||||||
- name: update-debian-oldstable-packages
|
- name: update-debian-oldstable-packages
|
||||||
image: debian:oldstable
|
image: debian:oldstable
|
||||||
privileged: true # Required to use the FUSE module for s3fs
|
|
||||||
environment:
|
environment:
|
||||||
DEB_VERSION: oldstable
|
DEB_VERSION: oldstable
|
||||||
WORKDIR: /tmp/workdir
|
WORKDIR: /tmp/workdir
|
||||||
PKG_NAME: platypush
|
PKG_NAME: platypush
|
||||||
S3_BUCKET: platypush-pkg
|
S3_URL: s3://platypush-pkg/apt
|
||||||
BUCKET_MNT: /mnt/s3
|
|
||||||
AWS_ENDPOINT_URL: https://s3.nl-ams.scw.cloud
|
AWS_ENDPOINT_URL: https://s3.nl-ams.scw.cloud
|
||||||
AWS_DEFAULT_REGION: nl-ams
|
AWS_DEFAULT_REGION: nl-ams
|
||||||
AWS_ACCESS_KEY_ID:
|
AWS_ACCESS_KEY_ID:
|
||||||
|
@ -464,12 +462,8 @@ steps:
|
||||||
|
|
||||||
- echo "-- Installing dependencies"
|
- echo "-- Installing dependencies"
|
||||||
- apt update
|
- apt update
|
||||||
- apt install -y curl dpkg-dev gpg git python3 python3-pip s3fs
|
- apt install -y curl dpkg-dev gpg git python3 python3-pip
|
||||||
|
- pip install awscli
|
||||||
- echo "-- Mounting the S3 bucket"
|
|
||||||
- mkdir -p "$BUCKET_MNT"
|
|
||||||
- s3fs "$S3_BUCKET" "$BUCKET_MNT" -o url="$AWS_ENDPOINT_URL"
|
|
||||||
- export APT_ROOT="$BUCKET_MNT/apt"
|
|
||||||
|
|
||||||
- echo "--- Parsing metadata"
|
- echo "--- Parsing metadata"
|
||||||
- git config --global --add safe.directory $PWD
|
- git config --global --add safe.directory $PWD
|
||||||
|
@ -501,8 +495,7 @@ steps:
|
||||||
- dpkg --build "$GIT_BUILD_DIR"
|
- dpkg --build "$GIT_BUILD_DIR"
|
||||||
|
|
||||||
- echo "--- Pushing package to the S3 bucket"
|
- echo "--- Pushing package to the S3 bucket"
|
||||||
- mkdir -p "$APT_ROOT/pool/$DEB_VERSION/dev"
|
- aws s3 cp "$GIT_DEB" "$S3_URL/pool/$DEB_VERSION/dev/"
|
||||||
- cp "$GIT_DEB" "$APT_ROOT/pool/$DEB_VERSION/dev/"
|
|
||||||
|
|
||||||
# If main/all/Packages doesn't exist, then we should create the first main release
|
# If main/all/Packages doesn't exist, then we should create the first main release
|
||||||
- export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages"
|
- export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages"
|
||||||
|
|
Loading…
Reference in a new issue