kind: pipeline name: publish-docker-image clone: depth: 1 steps: - name: build-and-public-docker-image image: docker:dind volumes: - name: dockersock path: /var/run commands: - apk add git docker make jq - mkdir $HOME/.docker/ - echo "$GITEA_DOCKER_REGISTRY_TOKEN" > $HOME/.docker/config.json - cat ~/.docker/config.json|jq ".auths|keys" - make docker environment: GITEA_DOCKER_REGISTRY_TOKEN: from_secret: GITEA_DOCKER_REGISTRY_TOKEN services: - name: docker image: docker:dind privileged: true volumes: - name: dockersock path: /var/run volumes: - name: dockersock temp: {}