clone:
git:
image: woodpeckerci/plugin-git
settings:
partial: false
tags: true
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 "$GLPAT"
- docker buildx build . -f starkingdoms-client/Dockerfile -t registry.gitlab.com/starkingdoms.tk/starkingdoms.tk/client:$(git describe --always --tags)
- docker push registry.gitlab.com/starkingdoms.tk/starkingdoms.tk/client:$(git describe --always --tags)
secrets: [ glpat ]