- add git commit sha to build tag
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
oonyeje 2025-02-25 18:18:44 -05:00
parent 70616bc5df
commit 2445ddf6f2
2 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,8 @@ steps:
- name: docker_sock
path: /var/run/docker.sock
commands:
- docker-compose -f ./docker-compose.drone.yaml build
- docker tag oonyeje-portfolio gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio:latest
- docker-compose -f ./docker-compose.drone.yaml build -t oonyeje-portfolio:${DRONE_COMMIT_SHA:0:7} .
- docker tag oonyeje-portfolio:${DRONE_COMMIT_SHA:0:7} gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio:${DRONE_COMMIT_SHA:0:7}
- name: push-image
image: docker/compose:latest
environment:

View File

@ -2,7 +2,7 @@ version: '3.3'
services:
oonyeje-portfolio:
image: gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio
image: gitea.bsidesolutions.net/oonyeje/oonyeje-portfolio:${DRONE_COMMIT_SHA:0:7}
build:
context: ./
dockerfile: Dockerfile