Tweaked CI a bit

main
Jef Roosens 2022-01-31 23:39:04 +01:00
parent 33e695bdf3
commit aa5ee55059
Signed by untrusted user: Jef Roosens
GPG Key ID: 955C0660072F691F
4 changed files with 6 additions and 33 deletions

View File

@ -25,9 +25,7 @@ pipeline:
settings: settings:
repo: chewingbever/vieter repo: chewingbever/vieter
dockerfile: Dockerfile.ci dockerfile: Dockerfile.ci
tag: auto_tag: true
- latest
- ${CI_COMMIT_TAG}
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ] platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
build_args_from_env: build_args_from_env:
- CI_COMMIT_SHA - CI_COMMIT_SHA

View File

@ -13,13 +13,10 @@ pipeline:
pull: true pull: true
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
- echo "$(git describe --tags --abbrev=0 2> /dev/null || echo '0.0.0')-$(git rev-list --count ^dev)" > title
- cat title
- 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 -r "s3/vieter/commits/$CI_COMMIT_SHA" assets - mc cp -r "s3/vieter/commits/$CI_COMMIT_SHA" assets
when:
event: tag
release: release:
image: 'plugins/gitea-release' image: 'plugins/gitea-release'
@ -32,7 +29,6 @@ pipeline:
- md5 - md5
- sha256 - sha256
prerelease: true prerelease: true
# This should get read in as a file title: ${CI_COMMIT_TAG}
title: title
when: when:
event: push event: tag

View File

@ -1,21 +0,0 @@
# Because the only step here is a pull_request event, the branch should be dev
# because it has to be the target of the pull request
branches: dev
platform: linux/amd64
depends_on: [ build ]
pipeline:
dryrun:
image: woodpeckerci/plugin-docker-buildx
secrets: [ docker_username, docker_password ]
settings:
dockerfile: Dockerfile.ci
repo: chewingbever/vieter
tag: dev
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
dry_run: true
build_args_from_env:
- CI_COMMIT_SHA
when:
event: pull_request
branch: dev

View File

@ -38,7 +38,7 @@ def create_random_pkginfo(words, name_min_len, name_max_len):
Generates a random .PKGINFO Generates a random .PKGINFO
""" """
name = "-".join(random_words(words, name_min_len, name_max_len)) name = "-".join(random_words(words, name_min_len, name_max_len))
ver = "0.1.0" # doesn't matter what it is anyways ver = "0.1.0-1" # doesn't matter what it is anyways
# TODO add random dependencies (all types) # TODO add random dependencies (all types)