--- kind: pipeline type: docker name: default steps: - name: build image: node:16-alpine pull: if_not_exists environment: NODE_ENV: "" commands: - yarn install --frozen-lockfile - env ${NODE_ENV} yarn build - name: publish image: docker:dind pull: if_not_exists volumes: - name: dockersock path: /var/run/docker.sock - name: dockerconfig path: /root/.docker commands: - docker build -t hub.kszny.picaiba.com/kszny/plcreader-ui:1.0.0-hnry ./ - docker push hub.kszny.picaiba.com/kszny/plcreader-ui:1.0.0-hnry depends_on: - build volumes: - name: dockersock host: path: /var/run/docker.sock - name: dockerconfig host: path: /root/.docker trigger: branch: - master event: - push