~starkingdoms/starkingdoms

ref: 71a2bac16823bbefefc853981832a48d149c2aa5 starkingdoms/.woodpecker/.client.yaml -rw-r--r-- 921 bytes
71a2bac1 — ghostlyzsh switch to keywords 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 ]