--- kind: pipeline name: Build-latest steps: - name: Build-latest-tag image: docker:dind volumes: - name: dockersock path: /var/run environment: DOCKER_PASSWORD: from_secret: DOCKER_PASSWORD commands: - sleep 30 - docker context create build - docker buildx create build --use - echo $DOCKER_PASSWORD | docker login --username Phil --password-stdin git.hackmi.ch - docker buildx build --platform linux/amd64 --no-cache --push --tag git.hackmi.ch/hackmi.ch/services:latest . services: - name: docker image: docker:dind privileged: true volumes: - name: dockersock path: /var/run volumes: - name: dockersock temp: {} when: branch: - main