image: python:3.12.10 variables: S3_BUCKET_NAME: "wirelos" PROJECT_NAME: "illucat" stages: - build - test - release cache: key: ${CI_COMMIT_REF_SLUG} paths: - .pio/ firmware: stage: build image: python:3.12.10 before_script: - pip install -U platformio script: - pio run -t clean - pio run -e release - pio run -t buildfs release: stage: release only: - /^release-.*$/ image: python:latest script: #- pip install awscli - mkdir -p ${PROJECT_NAME}/${CI_COMMIT_TAG} - 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}