2024-02-04 00:43:32 +00:00
|
|
|
steps:
|
2024-02-04 04:40:24 +00:00
|
|
|
- name: login
|
|
|
|
image: plugins/docker
|
|
|
|
commands:
|
2024-02-04 04:47:48 +00:00
|
|
|
- docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD}
|
2024-02-04 04:56:59 +00:00
|
|
|
- export TAG=$(openssl rand -hex 8)
|
2024-02-04 04:57:58 +00:00
|
|
|
- docker build --rm=true -f Dockerfile -t $TAG .
|
2024-02-04 04:56:59 +00:00
|
|
|
- docker tag $TAG $${DOCKERHUB_USERNAME}/point-median-backend:latest
|
|
|
|
- docker push $${DOCKERHUB_USERNAME}/point-median-backend:latest
|
2024-02-04 04:50:31 +00:00
|
|
|
secrets: [ dockerhub_username, dockerhub_password ]
|
2024-02-04 04:59:18 +00:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|