ci(gitlab-ci): update devenv commands for deploys

also try to use pipenv on RTD config and forgot to add devenv.yaml config updates
on previous commits

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>
This commit is contained in:
Andrei Jiroh Halili 2025-06-14 02:10:25 +08:00
parent e440ee780d
commit c171da5586
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
3 changed files with 21 additions and 29 deletions

View file

@ -1,20 +1,14 @@
# The Docker image that will be used to build your app # The Docker image that will be used to build your app
image: image:
name: ghcr.io/andreijiroh-dev/docker-images/mkdocs-material:latest name: ghcr.io/cachix/devenv/devenv:latest
entrypoint: ["/bin/bash", "-l", "-c"] # https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2109#note_47480476
stages: stages:
- test - test
- build - build
default: default:
tags:
- amd64 # currently, we only the image in amd64 right now.
# Functions that should be executed before the build script is run
before_script: before_script:
- pipenv install --ignore-pipfile --deploy - devenv shell echo "trigger install"
- npm ci #- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
# Global builds and stuff # Global builds and stuff
variables: variables:
@ -32,14 +26,12 @@ variables:
pages: pages:
stage: build stage: build
script: script:
- bash ./bin/build.sh - devenv shell doppler run -- npm run deploy:cf
- doppler run -- npm run deploy
artifacts: artifacts:
paths: paths:
# The folder that contains the files to be exposed at the Page URL # The folder that contains the files to be exposed at the Page URL
- public - public
variables: variables:
CF_PAGES_PROJECT_NAME: ajhalili2006
# doppler # doppler
DOPPLER_TOKEN: $DOPPLER_TOKEN DOPPLER_TOKEN: $DOPPLER_TOKEN
rules: rules:

View file

@ -6,21 +6,26 @@ version: 2
# Set the version of Python and other tools you might need # Set the version of Python and other tools you might need
build: build:
os: ubuntu-22.04 os: ubuntu-24.04
tools: tools:
python: "3.11" python: "3.13"
#nodejs: 18 #nodejs: 22
jobs: jobs:
post_checkout: post_checkout:
# Needed for some plugins/extensions to work # Needed for some plugins/extensions to work
- git fetch --unshallow || true - git fetch --unshallow || true
create_environment:
- pipenv install
build:
html:
- pipenv run mkdocs build -f mkdocs.redthedocs.yml -d "$READTHEDOCS_OUTPUT/html/"
post_build: post_build:
- | - |
mkdir $READTHEDOCS_OUTPUT/api mkdir $READTHEDOCS_OUTPUT/html/api
git rev-parse HEAD > $READTHEDOCS_OUTPUT/api/commit git rev-parse HEAD > $READTHEDOCS_OUTPUT/html/api/commit
- | #- |
cp -rv markdown/.well-known $READTHEDOCS_OUTPUT/html/.well-known # cp -rv markdown/.well-known $READTHEDOCS_OUTPUT/html/.well-known
cp $READTHEDOCS_OUTPUT/html/assets/images/favicon.png $READTHEDOCS_OUTPUT/favicon.ico # cp -rv $READTHEDOCS_OUTPUT/html/assets/images/favicon.png $READTHEDOCS_OUTPUT/favicon.ico
apt_packages: apt_packages:
- libcairo2-dev - libcairo2-dev
- libfreetype6-dev - libfreetype6-dev
@ -29,12 +34,4 @@ build:
- libpng-dev - libpng-dev
- libz-dev - libz-dev
- pngquant - pngquant
- pipenv
mkdocs:
configuration: mkdocs.readthedocs.yml
fail_on_warning: false
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: requirements.txt

View file

@ -6,3 +6,6 @@ inputs:
follows: nixpkgs follows: nixpkgs
nixpkgs: nixpkgs:
url: https://flakehub.com/f/DeterminateSystems/nixpkgs-weekly/*.tar.gz url: https://flakehub.com/f/DeterminateSystems/nixpkgs-weekly/*.tar.gz
# If you're using non-OSS software, you can set allowUnfree to true.
allowUnfree: true