Possible releases fix

main
Jef Roosens 2022-01-22 21:54:03 +01:00
parent 3d07213a91
commit fd4439eb42
Signed by untrusted user: Jef Roosens
GPG Key ID: B580B976584B5F30
2 changed files with 9 additions and 3 deletions

View File

@ -1,8 +1,8 @@
matrix: matrix:
PLATFORM: PLATFORM:
- linux/amd64 - linux/amd64
- linux/arm64 # - linux/arm64
- linux/arm/v7 # - linux/arm/v7
# These checks already get performed on the feature branches # These checks already get performed on the feature branches
platform: ${PLATFORM} platform: ${PLATFORM}

View File

@ -1,17 +1,23 @@
platform: linux/amd64 platform: linux/amd64
# We need the entire repo in order for the release names to work
clone:
skip: true
pipeline: pipeline:
prepare: prepare:
image: 'chewingbever/vlang:latest' image: 'chewingbever/vlang:latest'
secrets: [ s3_username, s3_password ] secrets: [ s3_username, s3_password ]
commands: commands:
- git clone "$CI_REPO_REMOTE"
- git checkout "$CI_COMMIT_BRANCH"
# Write the title to a file that the plugin can then read # Write the title to a file that the plugin can then read
- echo "$(git describe --tags --abbrev=0 2> /dev/null || echo '0.0.0')-$(git rev-list --count ^dev)" > title - echo "$(git describe --tags --abbrev=0 2> /dev/null || echo '0.0.0')-$(git rev-list --count ^dev)" > title
- cat title - cat title
- wget https://dl.min.io/client/mc/release/linux-amd64/mc - wget https://dl.min.io/client/mc/release/linux-amd64/mc
- chmod +x mc - chmod +x mc
- ./mc alias set s3/ https://s3.rustybever.be "$S3_USERNAME" "$S3_PASSWORD" - ./mc alias set s3/ https://s3.rustybever.be "$S3_USERNAME" "$S3_PASSWORD"
- ./mc cp "s3/vieter/commits/$CI_COMMIT_SHA" assets - ./mc cp -r "s3/vieter/commits/$CI_COMMIT_SHA" assets
release: release:
image: 'plugins/gitea-release' image: 'plugins/gitea-release'