steps:
- name: client_fmt
image: node:21-alpine
commands:
- cd starkingdoms-client
- yarn
- yarn prettier . --check
- name: client_build
depends_on:
- client_fmt
image: node:21-alpine
commands:
- cd starkingdoms-client
- yarn
- yarn build
- name: build_image
depends_on:
- client_build
image: node:21-alpine
commands:
- cd starkindoms-client
- docker login registry.gitlab.com -u c0repwn3r -p $GITLAB_TOKEN
- docker build . -t registry.gitlab.com/starkingdoms.tk/starkingdoms.tk/client:$(git describe --always)
- docker push registry.gitlab.com/starkingdoms.tk/starkingdoms.tk/client:$(git describe --always)
secrets: [ gitlab_token ]