CI: testing login
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
zvon 2023-08-25 13:45:56 +02:00
parent 7e7a81bae0
commit 8f3a96e82c

View File

@ -1,35 +1,35 @@
--- #---
kind: pipeline #kind: pipeline
type: kubernetes #type: kubernetes
name: build #name: build
platform: #platform:
os: linux # os: linux
arch: amd64 # arch: amd64
#
steps: #steps:
- name: formatting-check #- name: formatting-check
image: golang # image: golang
commands: # commands:
- test -z $(gofmt -l .) # - test -z $(gofmt -l .)
- name: build #- name: build
image: docker:dind # image: docker:dind
volumes: # volumes:
- name: dockersock # - name: dockersock
path: /var/run # path: /var/run
commands: # commands:
- docker build -f Dockerfile . # - docker build -f Dockerfile .
#
services: #services:
- name: docker #- name: docker
image: docker:dind # image: docker:dind
privileged: true # privileged: true
volumes: # volumes:
- name: dockersock # - name: dockersock
path: /var/run # path: /var/run
#
volumes: #volumes:
- name: dockersock #- name: dockersock
temp: {} # temp: {}
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
@ -42,4 +42,5 @@ steps:
- name: build - name: build
image: docker image: docker
commands: commands:
- echo "$DOCKER_USERNAME"
- echo "$DOCKER_PASSWORD" | docker login "docker.zvon.tech" --username "$DOCKER_USERNAME" --password-stdin - echo "$DOCKER_PASSWORD" | docker login "docker.zvon.tech" --username "$DOCKER_USERNAME" --password-stdin