M .woodpecker/.client.yaml => .woodpecker/.client.yaml +10 -7
@@ 18,10 18,13 @@ steps:
- name: build_image
depends_on:
- client_build
- image: docker
- commands:
- - cd starkingdoms-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 ]>
\ No newline at end of file
+ image: woodpeckerci/plugin-docker-buildx
+ settings:
+ repo: registry.gitlab.com/starkingdoms.tk/starkingdoms.tk/client
+ dockerfile: starkingdoms-client/Dockerfile
+ username: c0repwn3r
+ password:
+ from_secret: gitlab_token
+ tag: ${CI_COMMIT_TAG}
+ when:
+ event: tag<
\ No newline at end of file
M starkingdoms-client/Dockerfile => starkingdoms-client/Dockerfile +1 -1
@@ 1,5 1,5 @@
FROM node:21-alpine
-COPY dist .
+COPY starkingdoms-client/dist .
RUN cd dist && node .