steps:
- name: client_fmt
image: node
commands:
- cd starkingdoms-client
- yarn
- yarn prettier . --check
- name: client_build
depends_on:
- client_fmt
image: node
commands:
- cd starkingdoms-client
- yarn
- yarn build
- name: build_image
depends_on:
- client_build
image: docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
commands:
- docker login registry.gitlab.com -u c0repwn3r -p $GITLAB_TOKEN
- docker buildx build . -f starkingdoms-client/Dockerfile -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 ]