This commit is contained in:
@@ -13,9 +13,14 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
GITEA_USERNAME:
|
||||||
|
from_secret: gitea_username
|
||||||
|
GITEA_TOKEN:
|
||||||
|
from_secret: gitea_token
|
||||||
commands:
|
commands:
|
||||||
- docker buildx create --use || true
|
- docker buildx create --use || true
|
||||||
- docker login 192.168.1.9:3000 -u ${GITEA_USERNAME} -p ${GITEA_TOKEN}
|
- docker login 192.168.1.9:3000 -u $GITEA_USERNAME -p $GITEA_TOKEN
|
||||||
- docker buildx build \
|
- docker buildx build \
|
||||||
--tag 192.168.1.9:3000/tai/aberwyn/aberwyn:latest \
|
--tag 192.168.1.9:3000/tai/aberwyn/aberwyn:latest \
|
||||||
--tag 192.168.1.9:3000/tai/aberwyn/aberwyn:${DRONE_COMMIT_SHA:0:7} \
|
--tag 192.168.1.9:3000/tai/aberwyn/aberwyn:${DRONE_COMMIT_SHA:0:7} \
|
||||||
|
|||||||
Reference in New Issue
Block a user