mirror of
https://github.com/xtream1101/humblebundle-downloader.git
synced 2024-11-20 08:49:17 +01:00
Added ci job to build and release docker image
This commit is contained in:
parent
664ab33007
commit
f92a501d69
@ -30,3 +30,20 @@ tag:
|
||||
- export VERSION=$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)
|
||||
- git tag -a $VERSION -m "Version created by gitlab-ci release"
|
||||
- git push origin $VERSION
|
||||
|
||||
build_image:
|
||||
stage: build
|
||||
image: docker:latest
|
||||
services:
|
||||
- docker:dind
|
||||
only:
|
||||
- main
|
||||
- update
|
||||
script:
|
||||
- export VERSION=$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)
|
||||
- export LATEST_IMAGE_TAG=ghcr.io/${GH_REGISTRY_USER}/humblebundle-downloader:latest
|
||||
- export VERSION_IMAGE_TAG=ghcr.io/${GH_REGISTRY_USER}/humblebundle-downloader:$VERSION
|
||||
- echo $GH_REGISTRY_PASSWORD | docker login -u $GH_REGISTRY_USER ghcr.io --password-stdin
|
||||
- docker build -t $LATEST_IMAGE_TAG -t $VERSION_IMAGE_TAG .
|
||||
- docker push $LATEST_IMAGE_TAG
|
||||
- docker push $VERSION_IMAGE_TAG
|
||||
|
@ -35,7 +35,8 @@ This can be done by getting a browser extension that lets you see or export your
|
||||
|
||||
- **Method 1 (recommended)**
|
||||
- Get the value of the cookie called `_simpleauth_sess` and pass that value using `-s 'COOKIE_VALUE'`
|
||||
- Note: The quotes in the cookie value are part of the value, you might need to wrap the entire value (including double quotes) in single quotes.
|
||||
- Note: The quotes in the cookie value are part of the value, you might need to wrap the entire value
|
||||
(including double quotes) in single quotes. Some suggestions for common issues can be found in [issue #50](https://github.com/xtream1101/humblebundle-downloader/issues/50)
|
||||
|
||||
- **Method 2**
|
||||
- Export the cookies in the Netscape format using an extension.
|
||||
|
Loading…
Reference in New Issue
Block a user