This commit is contained in:
parent
cdd31d3c5b
commit
d43885fb63
46
.drone.yml
46
.drone.yml
@ -82,34 +82,30 @@ steps:
|
||||
depends_on:
|
||||
- debug-network
|
||||
|
||||
# TEST: Using docker:dind instead of plugins/docker to isolate hanging issue
|
||||
- name: docker nocr telegram listener build & push
|
||||
image: docker:24-dind
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
environment:
|
||||
HUB_USERNAME:
|
||||
from_secret: hub_username
|
||||
HUB_PASSWORD:
|
||||
from_secret: hub_password
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
commands:
|
||||
- echo "=== Docker version ==="
|
||||
- docker version || echo "Docker not available yet, starting daemon..."
|
||||
- dockerd --host=unix:///var/run/docker.sock --tls=false &
|
||||
- sleep 5
|
||||
- docker version
|
||||
- echo "=== Kaniko version ==="
|
||||
- /kaniko/executor version
|
||||
- echo ""
|
||||
- echo "=== Logging into registry ==="
|
||||
- echo "$HUB_PASSWORD" | docker login hub.musk.fun -u "$HUB_USERNAME" --password-stdin
|
||||
- echo "=== Setting up authentication ==="
|
||||
- mkdir -p /kaniko/.docker
|
||||
- echo "{\"auths\":{\"hub.musk.fun\":{\"username\":\"$HUB_USERNAME\",\"password\":\"$HUB_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
||||
- echo ""
|
||||
- echo "=== Building image ==="
|
||||
- echo "=== Building and pushing image ==="
|
||||
- cd flea/telegram-listener
|
||||
- docker build --no-cache -f src/Nocr.TelegramListener.Host/Dockerfile -t hub.musk.fun/k8s/nocr/telegram_listener:${DRONE_COMMIT_SHA:0:7} -t hub.musk.fun/k8s/nocr/telegram_listener:latest .
|
||||
- echo ""
|
||||
- echo "=== Pushing image ==="
|
||||
- docker push hub.musk.fun/k8s/nocr/telegram_listener:${DRONE_COMMIT_SHA:0:7}
|
||||
- docker push hub.musk.fun/k8s/nocr/telegram_listener:latest
|
||||
- /kaniko/executor
|
||||
--dockerfile=src/Nocr.TelegramListener.Host/Dockerfile
|
||||
--context=.
|
||||
--destination=hub.musk.fun/k8s/nocr/telegram_listener:${DRONE_COMMIT_SHA:0:7}
|
||||
--destination=hub.musk.fun/k8s/nocr/telegram_listener:latest
|
||||
--no-cache
|
||||
--verbosity=info
|
||||
- echo "=== Done ==="
|
||||
depends_on:
|
||||
- debug-dotnet-restore
|
||||
@ -126,8 +122,6 @@ steps:
|
||||
from_secret: hub_username
|
||||
password:
|
||||
from_secret: hub_password
|
||||
# TEMPORARY: Disable cache to force fresh certificate update
|
||||
no_cache: true
|
||||
depends_on:
|
||||
- docker nocr telegram listener build & push
|
||||
|
||||
@ -143,8 +137,6 @@ steps:
|
||||
from_secret: hub_username
|
||||
password:
|
||||
from_secret: hub_password
|
||||
# TEMPORARY: Disable cache to force fresh certificate update
|
||||
no_cache: true
|
||||
depends_on:
|
||||
- docker nocr text matcher build & push
|
||||
|
||||
@ -160,8 +152,6 @@ steps:
|
||||
from_secret: hub_username
|
||||
password:
|
||||
from_secret: hub_password
|
||||
# TEMPORARY: Disable cache to force fresh certificate update
|
||||
no_cache: true
|
||||
depends_on:
|
||||
- docker nocr users build & push
|
||||
|
||||
@ -177,8 +167,6 @@ steps:
|
||||
from_secret: hub_username
|
||||
password:
|
||||
from_secret: hub_password
|
||||
# TEMPORARY: Disable cache to force fresh certificate update
|
||||
no_cache: true
|
||||
depends_on:
|
||||
- docker nocr telegram client build & push
|
||||
|
||||
@ -194,8 +182,6 @@ steps:
|
||||
from_secret: hub_username
|
||||
password:
|
||||
from_secret: hub_password
|
||||
# TEMPORARY: Disable cache to force fresh certificate update
|
||||
no_cache: true
|
||||
depends_on:
|
||||
- docker nocr text matcher migrator build & push
|
||||
|
||||
@ -237,7 +223,3 @@ steps:
|
||||
- dotnet nuget push ./flea/users/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate
|
||||
depends_on:
|
||||
- nocr text matcher nuget package make & push
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
temp: {}
|
||||
Loading…
Reference in New Issue
Block a user