kind: pipeline type: docker steps: - name: pull image: alpine:3.8 volumes: - name: pull path: /data/ commands: - apk add --no-cache bash curl - ./update.sh - mv pull/ /data/ when: branch: - master - name: publish-server image: plugins/docker volumes: - name: pull path: /data/ privileged: true settings: privileged: true context: /data/ username: from_secret: registry_username password: from_secret: registry_password repo: registry.hiram.services/audiobot tags: latest registry: registry.hiram.services when: branch: - master volumes: - name: pull temp: {}