~starkingdoms/starkingdoms

ref: 6df82b539feeaaf75a383db87d3ecb4089a089e7 starkingdoms/.woodpecker/.client.yaml -rw-r--r-- 817 bytes
6df82b53 — core ci work 8 1 year, 8 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
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 ]