12 lines
508 B
YAML
12 lines
508 B
YAML
steps:
|
|
- name: login
|
|
image: plugins/docker
|
|
commands:
|
|
- docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD}
|
|
- export TAG=$(openssl rand -hex 8)
|
|
- docker build --rm=true -f Dockerfile -t $TAG .
|
|
- docker tag $TAG $${DOCKERHUB_USERNAME}/point-median-backend:latest
|
|
- docker push $${DOCKERHUB_USERNAME}/point-median-backend:latest
|
|
secrets: [ dockerhub_username, dockerhub_password ]
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|