You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
kind: pipeline
|
|
|
|
name: publish-docker-image
|
|
|
|
|
|
|
|
clone:
|
|
|
|
depth: 1
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build-and-public-docker-image
|
|
|
|
image: docker:dind
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
commands:
|
|
|
|
- apk add git docker make
|
|
|
|
- mkdir ~/.docker/
|
|
|
|
- echo $GITEA_DOCKER_REGISTRY_TOKEN > $HOME/docker/config.json
|
|
|
|
- docker login code.ndumas.com
|
|
|
|
- make docker
|
|
|
|
enviornment:
|
|
|
|
GITEA_AUTH_TOKEN:
|
|
|
|
from_secret: GITEA_AUTH_TOKEN
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: docker
|
|
|
|
image: docker:dind
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
temp: {}
|