Skip to content

Commit

Permalink
ci: Split Writerside build into pre and latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Griefed committed Feb 11, 2024
1 parent c69dc4a commit 7f990f5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,29 @@ Writerside Docker Latest:
--build-arg VERSION=$CI_COMMIT_TAG
--file Dockerfile.help .
rules:
- if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+-beta\.\d+$/ && $CI_SERVER_HOST == "git.griefed.de"'
- if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+$/ && $CI_SERVER_HOST == "git.griefed.de"'

Writerside Docker Prerelease:
stage: Documentation
image: docker.griefed.dev/griefed/gitlab-ci-cd:2.2.17
needs:
- job: Writerside Build
artifacts: true
optional: false
before_script:
- docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_TOKEN" docker.io
- docker login -u "$DOCKERHUB_USER" -p "$GITHUB_TOKEN" ghcr.io
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --use --name grfdbuilder
script:
- docker buildx build --push --no-cache --platform linux/amd64
--tag "ghcr.io/$DOCKERHUB_USER/serverpackcreator-help:$CI_COMMIT_TAG"
--tag "index.docker.io/$DOCKERHUB_USER/serverpackcreator-help:$CI_COMMIT_TAG"
--build-arg VERSION=$CI_COMMIT_TAG
--file Dockerfile.help .
rules:
- if: '$CI_COMMIT_TAG =~ /^\d+\.\d+\.\d+-beta\.\d+$/ && $CI_SERVER_HOST == "git.griefed.de"'

pages:
stage: Documentation
image: docker.griefed.dev/eclipse-temurin:21-jdk
Expand Down

0 comments on commit 7f990f5

Please sign in to comment.