38 lines
851 B
YAML
38 lines
851 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
steps:
|
|
- name: hello-world
|
|
image: alpine/git
|
|
commands:
|
|
- echo "=== Successful Deployment ==="
|
|
- echo "Latest commit:"
|
|
- git rev-parse HEAD
|
|
- echo "Latest tag:"
|
|
- git describe --tags --abbrev=0 || echo "No tags found"
|
|
|
|
- name: docker-pull-test
|
|
image: docker:cli
|
|
volumes:
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- echo "=== Testing Docker image pull connectivity ==="
|
|
- docker info
|
|
- echo "Pulling busybox:latest ..."
|
|
- docker pull busybox:latest
|
|
- echo "Pulling node:20-alpine ..."
|
|
- docker pull node:20-alpine
|
|
- echo "✅ Docker Hub pull test completed successfully"
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|