--- kind: pipeline type: docker name: Test-Push platform: arch: amd64 steps: - name: Prepare Repo (amd64,test) image: alpine/git commands: - git submodule update --init --recursive - name: Compile gmqcc (amd64,test) image: alpine commands: - chmod +x ci-dependencies.sh - ./ci-dependencies.sh - cd gmqcc - make - cd .. - name: Compile SpecialSauce (amd64,test) image: alpine commands: - chmod +x ci-dependencies.sh - chmod +x build.sh - ./ci-dependencies.sh - bash build.sh - name: Release_binary s3 (prod) image: alpine environment: s3_host: from_secret: s3_host s3_key: from_secret: s3_key s3_secret: from_secret: s3_secret commands: - apk add curl wget ca-certificates openssl - cd dist/ - wget https://fastdl.hackmi.ch/scripts/s3upload.sh - bash s3upload.sh amogusspecialsauce/b/main compiled-${DRONE_COMMIT_SHA:0:10}.zip - name: discord notification image: appleboy/drone-discord settings: webhook_id: from_secret: webhook_id webhook_token: from_secret: webhook_token message: > {{#success build.status}} Test-Build {{build.number}} succeeded. Download: https://s3.hackmi.ch/amogusspecialsauce/b/main/compiled-${DRONE_COMMIT_SHA:0:10}.zip {{else}} Test-Build {{build.number}} failed. See: {{build.link}} {{/success}} trigger: branch: - main event: - push --- kind: pipeline type: docker name: Release-Tag platform: arch: amd64 steps: - name: Prepare Repo (amd64,prod) image: alpine/git commands: - git submodule update --init --recursive - name: Compile gmqcc (amd64,prod) image: alpine commands: - chmod +x ci-dependencies.sh - ./ci-dependencies.sh - cd gmqcc - make - cd .. - name: Compile SpecialSauce (amd64,prod) image: alpine commands: - chmod +x ci-dependencies.sh - chmod +x build.sh - ./ci-dependencies.sh - bash build.sh - name: Release_binary git (prod) image: plugins/gitea-release settings: api_key: from_secret: api_key base_url: https://git.hackmi.ch files: dist/* checksum: md5,sha256 - name: Release_binary s3 (prod) image: alpine environment: s3_host: from_secret: s3_host s3_key: from_secret: s3_key s3_secret: from_secret: s3_secret commands: - apk add curl wget ca-certificates openssl - cd dist/ - wget https://fastdl.hackmi.ch/scripts/s3upload.sh - bash s3upload.sh amogusspecialsauce/releases compiled-${DRONE_TAG}.zip - name: discord notification image: appleboy/drone-discord settings: webhook_id: from_secret: webhook_id webhook_token: from_secret: webhook_token message: > {{#success build.status}} Test-Build {{build.number}} succeeded. Download: https://s3.hackmi.ch/amogusspecialsauce/releases/compiled-${DRONE_TAG}.zip {{else}} Test-Build {{build.number}} failed. See: {{build.link}} {{/success}} trigger: event: - tag