pin versions

This commit is contained in:
2025-08-14 20:15:09 +02:00
parent 210e32eb5a
commit 22004ba8e6
4 changed files with 143 additions and 76 deletions

View File

@@ -1,4 +1,4 @@
image: python:2.7-stretch
image: python:3.12.10
variables:
S3_BUCKET_NAME: "wirelos"
@@ -12,16 +12,16 @@ stages:
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .pioenvs/
- .pio/
firmware:
stage: build
image: python:2.7-stretch
image: python:3.12.10
before_script:
- pip install -U platformio
script:
- pio run -t clean
- pio run
- pio run -e release
- pio run -t buildfs
release:
@@ -30,11 +30,11 @@ release:
- /^release-.*$/
image: python:latest
script:
- pip install awscli
#- pip install awscli
- mkdir -p ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pioenvs/release/firmware.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pioenvs/release/spiffs.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
- aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
- mv .pio/build/release/firmware.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
- mv .pio/build/release/spiffs.bin ${PROJECT_NAME}/${CI_COMMIT_TAG}
#- aws s3 --endpoint-url=https://$DO_SPACE_ENDPOINT cp ./ s3://$S3_BUCKET_NAME/ --recursive --exclude "*" --include "*.bin"
artifacts:
paths:
- ${PROJECT_NAME}/${CI_COMMIT_TAG}