-
Notifications
You must be signed in to change notification settings - Fork 0
/
drone.yml
55 lines (44 loc) · 982 Bytes
/
drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
kind: pipeline
type: exec
name: CICD - Container Build
platform:
os: linux
arch: arm64
steps:
- name: build
commands:
- /usr/sbin/image-build
- /usr/bin/podman images
- name: push
environment:
DOCKERIO_USERNAME:
from_secret: username.docker.io
DOCKERIO_PASSWORD:
from_secret: password.docker.io
PUBLISH_REPOSITORY:
value: docker.io
commands:
- pwd
- /usr/sbin/image-name
- /usr/sbin/image-tag test
- /usr/sbin/image-publish test
- name: publish
environment:
DOCKERIO_USERNAME:
from_secret: username.docker.io
DOCKERIO_PASSWORD:
from_secret: password.docker.io
PUBLISH_REPOSITORY:
value: docker.io
commands:
- echo "$(/usr/sbin/image-version)"
- /usr/sbin/image-tag "$(/usr/sbin/image-version)"
- /usr/sbin/image-publish "$(/usr/sbin/image-version)"
- /usr/sbin/image-tag latest
- /usr/sbin/image-publish latest
when:
branch:
- main
trigger:
event:
- push