From fc14e3acd85a2c958f4832411c91c90c22df8c6f Mon Sep 17 00:00:00 2001 From: core Date: Sun, 7 Apr 2024 11:09:18 -0400 Subject: [PATCH] h2 --- .woodpecker/.client.yaml | 17 ++++++++++------- starkingdoms-client/Dockerfile | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.woodpecker/.client.yaml b/.woodpecker/.client.yaml index a62fdedddd14c4f47ffe46e79809095b09a732e3..34dbaa7dc8b5b3e87cad08e0300613d6c0bfdc56 100644 --- a/.woodpecker/.client.yaml +++ b/.woodpecker/.client.yaml @@ -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 diff --git a/starkingdoms-client/Dockerfile b/starkingdoms-client/Dockerfile index 207cedeb73deefa131699e192ee4b3fe4a62bc40..8cb960e1cb4fb360b8a39b9e765c31450c035f7a 100644 --- a/starkingdoms-client/Dockerfile +++ b/starkingdoms-client/Dockerfile @@ -1,5 +1,5 @@ FROM node:21-alpine -COPY dist . +COPY starkingdoms-client/dist . RUN cd dist && node .