mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-11-16 16:12:32 +01:00
Merge branch 'modernize-ci-again' into 'master'
Fix a few more nits with CI See merge request mangadex-pub/mangadex_at_home!96
This commit is contained in:
commit
0d490b3d5b
@ -49,11 +49,13 @@ Docker Build:
|
|||||||
stage: docker
|
stage: docker
|
||||||
needs:
|
needs:
|
||||||
- Gradle Build
|
- Gradle Build
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin ${CI_REGISTRY}
|
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin ${CI_REGISTRY}
|
||||||
- export VERSION="${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}"
|
- export VERSION="${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}"
|
||||||
- export BASE_TAG="$CI_COMMIT_SHORT_SHA"
|
- export BASE_TAG="git-$CI_COMMIT_SHORT_SHA"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mv build/libs/mangadex_at_home-${VERSION}-all.jar build/libs/mangadex_at_home.jar
|
- mv build/libs/mangadex_at_home-${VERSION}-all.jar build/libs/mangadex_at_home.jar
|
||||||
@ -70,7 +72,7 @@ Docker Build:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin ${CI_REGISTRY}
|
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin ${CI_REGISTRY}
|
||||||
- export BASE_TAG="$CI_COMMIT_SHORT_SHA"
|
- export BASE_TAG="git-$CI_COMMIT_SHORT_SHA"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- docker pull $CI_REGISTRY_IMAGE:$BASE_TAG
|
- docker pull $CI_REGISTRY_IMAGE:$BASE_TAG
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM adoptopenjdk:15
|
FROM adoptopenjdk:17
|
||||||
|
|
||||||
WORKDIR /mangahome
|
WORKDIR /mangahome
|
||||||
ADD /build/libs/mangadex_at_home.jar /mangahome/mangadex_at_home.jar
|
ADD /build/libs/mangadex_at_home.jar /mangahome/mangadex_at_home.jar
|
||||||
|
Loading…
Reference in New Issue
Block a user