This commit is contained in:
parent
6112d7b6e8
commit
8d2d69a4af
@ -28,6 +28,7 @@ steps:
|
||||
- name: docker_sock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- export DRONE_SHA=${DRONE_COMMIT_SHA:0:7}
|
||||
- docker-compose -f ./docker-compose.drone.yaml build
|
||||
- docker tag oonyeje-portfolio:${DRONE_COMMIT_SHA:0:7} gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio:${DRONE_COMMIT_SHA:0:7}
|
||||
- name: push-image
|
||||
@ -59,6 +60,7 @@ steps:
|
||||
- name: docker_sock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- export DRONE_SHA=${DRONE_COMMIT_SHA:0:7}
|
||||
- docker login gitea.bsidesolutions.net --username $REGISTRY_USER --password $REGISTRY_PASS
|
||||
- docker-compose -f ./docker-compose.drone.yaml push
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ version: '3.3'
|
||||
|
||||
services:
|
||||
oonyeje-portfolio:
|
||||
image: gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio:${DRONE_COMMIT_SHA:0:7}
|
||||
image: gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio:${DRONE_SHA:-latest}
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user